Skip to content

Commit f1ae9b5

Browse files
committed
test(create-twilio-function): use tmpdir files
1 parent 39c9614 commit f1ae9b5

File tree

5 files changed

+261
-105
lines changed

5 files changed

+261
-105
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
const path = require('path');
12
const base = require('../../jest.config.base.js');
23

34
module.exports = {
45
...base,
56
preset: null,
67
name: 'create-twilio-function',
78
displayName: 'create-twilio-function',
9+
globalTeardown: path.join(__dirname, 'jest.teardown.js'),
810
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const path = require('path');
2+
const os = require('os');
3+
const rimraf = require('rimraf');
4+
5+
module.exports = () => {
6+
rimraf.sync(path.join(os.tmpdir(), 'test-twilio-run-*'));
7+
};

0 commit comments

Comments
 (0)