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