Skip to content

Commit

Permalink
ensure that there are no server errors in the module-resolution tests (
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-piotrowicz authored Nov 6, 2024
1 parent 4bdc0a8 commit e7831cc
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { describe, expect, test } from 'vitest';
import { getJsonResponse, isBuild } from '../../__test-utils__';
import { afterAll, describe, expect, test } from 'vitest';
import { getJsonResponse, isBuild, serverLogs } from '../../__test-utils__';

describe.runIf(!isBuild)('module resolution', async () => {
afterAll(() => expect(serverLogs.errors).toEqual([]));

describe('basic module resolution', () => {
test('`require` js/cjs files with specifying their file extension', async () => {
const result = await getJsonResponse('/require-ext');
Expand Down

0 comments on commit e7831cc

Please sign in to comment.