Skip to content

Commit 063b036

Browse files
committed
test: fix the test script on Windows
1 parent bf9f598 commit 063b036

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"build": "cross-env NODE_ENV=production parcel build --target main lib/main.js",
1717
"build-commit": "npm run clean && build-commit -o dist",
1818
"esdoc": "esdoc -c esdoc.json",
19-
"test": "cross-env NODE_ENV=test atom --test spec",
19+
"test": "atom --test spec",
2020
"bump": "ncu -u",
2121
"prepare": "npm run build"
2222
},

spec/canvas-layer-spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
'use strict'
2+
process.env.NODE_ENV = 'test'
23

34
const CanvasLayer = require('../lib/canvas-layer')
45

spec/minimap-element-spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
'use strict'
2+
process.env.NODE_ENV = 'test'
23

34
const fs = require('fs-plus')
45
const Main = require('../dist/main')

spec/minimap-main-spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
'use strict'
2+
process.env.NODE_ENV = 'test'
23

34
require('./helpers/workspace')
45
const { Minimap } = require('../dist/main')

spec/minimap-spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
'use strict'
2+
process.env.NODE_ENV = 'test'
23

34
require('./helpers/workspace')
45

0 commit comments

Comments
 (0)