Skip to content

Commit

Permalink
normalize is async now
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Apr 1, 2021
1 parent dcda5ba commit 88cfea0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/jest-config/src/__tests__/normalize.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1844,19 +1844,19 @@ describe('extensionsToTreatAsEsm', () => {
});

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

expect(() =>
await expect(
normalize(
{haste: {enableSymlinks: true}, rootDir: '/root/', watchman: true},
{},
),
).toThrow('haste.enableSymlinks is incompatible with watchman');
).rejects.toThrow('haste.enableSymlinks is incompatible with watchman');

const {options} = normalize(
const {options} = await normalize(
{haste: {enableSymlinks: true}, rootDir: '/root/', watchman: false},
{},
);
Expand Down

0 comments on commit 88cfea0

Please sign in to comment.