Skip to content

Commit 3c834f4

Browse files
committed
run tests against the ES6 version and only lint on test passing
1 parent c496557 commit 3c834f4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"lint": "eslint src",
88
"build": "babel --out-dir lib src",
99
"watch": "chokidar src -c 'npm run build'",
10-
"pretest": "npm run lint && npm run build",
11-
"test": "mocha",
10+
"test": "mocha --compilers js:babel/register",
11+
"posttest": "npm run lint && npm run build",
1212
"autotest": "chokidar src test -c 'npm test'",
1313
"precover": "npm run lint && npm run build",
1414
"cover": "istanbul cover node_modules/mocha/bin/_mocha",

test/test-cases.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var assert = require("assert");
66
var fs = require("fs");
77
var path = require("path");
88
var postcss = require("postcss");
9-
var processor = require("../");
9+
var processor = require("../src");
1010

1111
function generateInvalidCSS(css) {
1212
css.eachDecl(function(decl) {

0 commit comments

Comments
 (0)