Commit c481ec8
Changed files (3)
.github/workflows/test.yml
@@ -36,7 +36,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- - run: npm run test:win32
+ - run: npm test
timeout-minutes: 1
env:
FORCE_COLOR: 3
test/win32/core.test.js → test/win32.test.js
@@ -14,17 +14,17 @@
import { suite } from 'uvu'
import * as assert from 'uvu/assert'
-import '../../build/globals.js'
+import '../build/globals.js'
-const test = suite('core')
+const test = suite('win32')
$.verbose = false
-test('should work with windows-specific commands', async () => {
- if (process.platform === 'win32') {
- let p = await $`ver`
+if (process.platform === 'win32') {
+ test('should work with windows-specific commands', async () => {
+ const p = await $`ver`
assert.match(p.stdout, /Windows/)
- }
-})
+ })
+}
test.run()
package.json
@@ -38,8 +38,7 @@
"fmt": "prettier --write .",
"fmt:check": "prettier --check .",
"build": "tsc",
- "test": "tsc && PATH=$(env -i bash -c 'echo $PATH') node_modules/.bin/uvu test -i fixtures -i win32",
- "test:win32": "tsc && uvu test/win32",
+ "test": "tsc && PATH=$(env -i bash -c 'echo $PATH') node_modules/.bin/uvu test -i fixtures",
"coverage": "c8 --check-coverage npm test -- -i package",
"mutation": "stryker run"
},