Upgrade to node 16 (#390)

This commit is contained in:
Zenoo
2021-06-17 18:06:58 +02:00
committed by GitHub
parent 408389fcc9
commit 2afece0f84
6 changed files with 2644 additions and 5117 deletions

View File

@@ -70,7 +70,7 @@ placeholder.run = async vars => {
//Setup
beforeAll(async () => {
//Clean community template
await fs.promises.rmdir(path.join(__dirname, "../source/templates/@classic"), { recursive: true })
await fs.promises.rm(path.join(__dirname, "../source/templates/@classic"), { recursive: true, force:true })
//Start web instance
await web.start()
})
@@ -79,7 +79,7 @@ afterAll(async () => {
//Stop web instance
await web.stop()
//Clean community template
await fs.promises.rmdir(path.join(__dirname, "../source/templates/@classic"), { recursive: true })
await fs.promises.rm(path.join(__dirname, "../source/templates/@classic"), { recursive: true, force:true })
})
//Load metadata (as jest doesn't support ESM modules, we use this dirty hack)