Skip to content

Commit

Permalink
updating tests
Browse files Browse the repository at this point in the history
  • Loading branch information
agracio committed Nov 18, 2024
1 parent 3120ebf commit 4d55e4d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module.exports = {
verbose: true,
globalTeardown: "./tests/teardown.js"
}
2 changes: 1 addition & 1 deletion tests/common.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
5 changes: 5 additions & 0 deletions tests/teardown.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const common = require("./common");
const teardown = async () => {
common.removeTempDir();
}
module.exports = teardown;

0 comments on commit 4d55e4d

Please sign in to comment.