From 4d55e4d7ed34320c7333aeeccd72aed8b357a65e Mon Sep 17 00:00:00 2001 From: agracio Date: Mon, 18 Nov 2024 14:05:48 +0000 Subject: [PATCH] updating tests --- jest.config.js | 1 + tests/common.js | 2 +- tests/teardown.js | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 tests/teardown.js diff --git a/jest.config.js b/jest.config.js index 8a540c7..c0bbb7c 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,3 +1,4 @@ module.exports = { verbose: true, + globalTeardown: "./tests/teardown.js" } \ No newline at end of file diff --git a/tests/common.js b/tests/common.js index e24daaa..c284b08 100644 --- a/tests/common.js +++ b/tests/common.js @@ -1,6 +1,6 @@ const path = require('path'); const fs = require("fs"); -const expect = require('@jest/globals').expect; +//const expect = require('@jest/globals').expect; const reportDir= './tests/data/result'; const outDir= './tests/data/tmp'; diff --git a/tests/teardown.js b/tests/teardown.js new file mode 100644 index 0000000..3278a2c --- /dev/null +++ b/tests/teardown.js @@ -0,0 +1,5 @@ +const common = require("./common"); +const teardown = async () => { + common.removeTempDir(); +} +module.exports = teardown; \ No newline at end of file