Skip to content

Commit e08f242

Browse files
committed
normalize is async now
1 parent 9beb09b commit e08f242

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/jest-config/src/__tests__/normalize.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1844,19 +1844,19 @@ describe('extensionsToTreatAsEsm', () => {
18441844
});
18451845

18461846
describe('haste.enableSymlinks', () => {
1847-
it('should throw if watchman is not disabled', () => {
1848-
expect(() =>
1847+
it('should throw if watchman is not disabled', async () => {
1848+
await expect(
18491849
normalize({haste: {enableSymlinks: true}, rootDir: '/root/'}, {}),
1850-
).toThrow('haste.enableSymlinks is incompatible with watchman');
1850+
).rejects.toThrow('haste.enableSymlinks is incompatible with watchman');
18511851

1852-
expect(() =>
1852+
await expect(
18531853
normalize(
18541854
{haste: {enableSymlinks: true}, rootDir: '/root/', watchman: true},
18551855
{},
18561856
),
1857-
).toThrow('haste.enableSymlinks is incompatible with watchman');
1857+
).rejects.toThrow('haste.enableSymlinks is incompatible with watchman');
18581858

1859-
const {options} = normalize(
1859+
const {options} = await normalize(
18601860
{haste: {enableSymlinks: true}, rootDir: '/root/', watchman: false},
18611861
{},
18621862
);

0 commit comments

Comments
 (0)