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

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)