Skip to content
This repository was archived by the owner on Oct 30, 2020. It is now read-only.

Commit 0f27a87

Browse files
committed
simplify test job in package.json
1 parent 5fc62ba commit 0f27a87

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,8 @@
77
"build": "babel src -d lib",
88
"prepublish": "npm run build",
99
"pretest": "rm -f ./test/example*.css.d.ts",
10-
"test:base": "diff ./test/example.css.d.ts ./test/expected-example.css.d.ts",
11-
"test:camelcase": "diff ./test/example-camelcase.css.d.ts ./test/expected-example-camelcase.css.d.ts",
12-
"test:namedexport": "diff ./test/example-namedexport.css.d.ts ./test/expected-example-namedexport.css.d.ts",
13-
"test:camelcase-namedexport": "diff ./test/example-camelcase-namedexport.css.d.ts ./test/expected-example-camelcase-namedexport.css.d.ts",
14-
"test:steps": "npm run test:base && npm run test:camelcase && npm run test:namedexport && npm run test:camelcase-namedexport",
15-
"test:run": "babel-node ./node_modules/webpack/bin/webpack --config ./test/webpack.config.babel.js && npm run test:steps",
10+
"test:diff": "(cd test; set -e; for f in example*css.d.ts; do diff $f expected-$f; done;)",
11+
"test:run": "babel-node ./node_modules/webpack/bin/webpack --config ./test/webpack.config.babel.js && npm run test:diff",
1612
"test": "npm run test:run > /dev/null 2>&1 && npm run test:run"
1713
},
1814
"author": "Tim Sebastian <[email protected]>",

0 commit comments

Comments
 (0)