Bump jest from 26.6.3 to 27.0.3 (#350) [skip ci]

This commit is contained in:
dependabot[bot]
2021-06-04 21:15:13 +02:00
committed by GitHub
parent aa9839ea40
commit 2c332d6578
3 changed files with 2312 additions and 4898 deletions

7202
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -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"
},

View File

@@ -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)