Add global test timeout
parent
31e28e862f
commit
f202bab7b9
|
@ -4,9 +4,7 @@ import * as fs from 'node:fs/promises'
|
|||
|
||||
withFixture('v2', (c) => {
|
||||
function testFixture(fixture) {
|
||||
test(
|
||||
fixture,
|
||||
async () => {
|
||||
test(fixture, async () => {
|
||||
fixture = await fs.readFile(`tests/code-actions/${fixture}.json`, 'utf8')
|
||||
|
||||
let { code, expected, language = 'html' } = JSON.parse(fixture)
|
||||
|
@ -31,9 +29,7 @@ withFixture('v2', (c) => {
|
|||
expected = JSON.parse(JSON.stringify(expected).replaceAll('{{URI}}', textDocument.uri))
|
||||
|
||||
expect(res).toEqual(expected)
|
||||
},
|
||||
10000
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
// testFixture('conflict')
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
import { defineConfig } from 'vitest/config'
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
testTimeout: 15000,
|
||||
},
|
||||
})
|
Loading…
Reference in New Issue