Skip to content

Commit b2c8574

Browse files
committed
Fix type error
1 parent 96d9d18 commit b2c8574

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/fixtures.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ test.concurrent('explicit config path', async ({ expect }) => {
8888

8989
describe('fixtures', () => {
9090
// Temporarily move config files out of the way so they don't interfere with the tests
91-
beforeAll(() =>
92-
Promise.all(configs.map(({ from, to }) => fs.rename(from, to))),
93-
)
91+
beforeAll(async () => {
92+
await Promise.all(configs.map(({ from, to }) => fs.rename(from, to)))
93+
})
9494

95-
afterAll(() =>
96-
Promise.all(configs.map(({ from, to }) => fs.rename(to, from))),
97-
)
95+
afterAll(async () => {
96+
await Promise.all(configs.map(({ from, to }) => fs.rename(to, from)))
97+
})
9898

9999
let binPath = path.resolve(__dirname, '../node_modules/.bin/prettier')
100100

0 commit comments

Comments
 (0)