mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
test: Remove test tmp folder after all tests are finished
This commit is contained in:
@@ -40,6 +40,7 @@ module.exports = {
|
||||
],
|
||||
testEnvironment: 'node',
|
||||
globalSetup: '<rootDir>/test/util/SetupTests.ts',
|
||||
globalTeardown: '<rootDir>/test/util/TeardownTests.ts',
|
||||
setupFilesAfterEnv: [ 'jest-rdf' ],
|
||||
collectCoverage: false,
|
||||
// See https://github.com/matthieubosquet/ts-dpop/issues/13
|
||||
|
||||
7
test/util/TeardownTests.ts
Normal file
7
test/util/TeardownTests.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { getTestFolder, removeFolder } from '../integration/Config';
|
||||
|
||||
// Jest global teardown requires a single function to be exported
|
||||
export default async function(): Promise<void> {
|
||||
// Clean up the root test folder
|
||||
await removeFolder(getTestFolder(''));
|
||||
}
|
||||
Reference in New Issue
Block a user