test: use --legacy-peer-deps instead of --force

This commit is contained in:
Haoqun Jiang
2021-11-03 22:54:00 +08:00
parent 3aafeddd8a
commit 220e019a84

View File

@@ -285,7 +285,7 @@ test(`should work with eslint v8`, async () => {
}
})
const { read, write, run } = project
await run('npm add -D eslint@8 --force')
await run('npm add -D eslint@8 --legacy-peer-deps')
// should've applied airbnb autofix
const main = await read('src/main.js')
expect(main).toMatch(';')