Skip to content

Commit 1c0ab06

Browse files
authored
Merge pull request #502 from antfu/chore/test-improve
Improve test writing experiences for devs
2 parents dc87cf9 + 654ad4b commit 1c0ab06

8 files changed

+328
-355
lines changed

package-lock.json

+15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"prettier": "^1.19.1",
6565
"raw-loader": "^4.0.0",
6666
"rimraf": "^3.0.0",
67+
"set-tz": "^0.2.0",
6768
"version-bump-prompt": "^5.0.6",
6869
"webpack": "^4.41.4",
6970
"webpack-cli": "^3.3.10",

test/examples.test.js

-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ var { compile, evalCompiled } = require("../src/parser");
77

88
var lib = utils.loadlib();
99
const exampleDir = path.resolve(__dirname, "../examples/");
10-
const outputDir = path.resolve(__dirname, "../test/temp/examples/");
1110
const python = getPythonExecutable();
1211

1312
const ignoreExamples = [
@@ -67,11 +66,6 @@ function runAll(lang, options) {
6766
}
6867

6968
describe("examples", () => {
70-
before(() => {
71-
fs.removeSync(outputDir);
72-
fs.ensureDirSync(outputDir);
73-
});
74-
7569
describe("javascript", () => {
7670
runAll("js");
7771
});

0 commit comments

Comments
 (0)