Bump jest from 26.6.3 to 27.0.3 (#350) [skip ci]
This commit is contained in:
7202
package-lock.json
generated
7202
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -59,7 +59,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^7.27.0",
|
"eslint": "^7.27.0",
|
||||||
"jest": "^26.6.3",
|
"jest": "^27.0.3",
|
||||||
"libxmljs2": "^0.27.0",
|
"libxmljs2": "^0.27.0",
|
||||||
"nodemon": "^2.0.7"
|
"nodemon": "^2.0.7"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -68,20 +68,18 @@ placeholder.run = async vars => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Setup
|
//Setup
|
||||||
beforeAll(async done => {
|
beforeAll(async () => {
|
||||||
//Clean community template
|
//Clean community template
|
||||||
await fs.promises.rmdir(path.join(__dirname, "../source/templates/@classic"), { recursive: true })
|
await fs.promises.rmdir(path.join(__dirname, "../source/templates/@classic"), { recursive: true })
|
||||||
//Start web instance
|
//Start web instance
|
||||||
await web.start()
|
await web.start()
|
||||||
done()
|
|
||||||
})
|
})
|
||||||
//Teardown
|
//Teardown
|
||||||
afterAll(async done => {
|
afterAll(async () => {
|
||||||
//Stop web instance
|
//Stop web instance
|
||||||
await web.stop()
|
await web.stop()
|
||||||
//Clean community template
|
//Clean community template
|
||||||
await fs.promises.rmdir(path.join(__dirname, "../source/templates/@classic"), { recursive: true })
|
await fs.promises.rmdir(path.join(__dirname, "../source/templates/@classic"), { recursive: true })
|
||||||
done()
|
|
||||||
})
|
})
|
||||||
|
|
||||||
//Load metadata (as jest doesn't support ESM modules, we use this dirty hack)
|
//Load metadata (as jest doesn't support ESM modules, we use this dirty hack)
|
||||||
|
|||||||
Reference in New Issue
Block a user