Commit be0d674
Changed files (3)
.github
workflows
test
.github/workflows/dev-publish.yml
@@ -18,7 +18,6 @@ jobs:
- run: echo "//wombat-dressing-room.appspot.com/:_authToken=$AUTH_TOKEN" >> .npmrc
env:
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
- FORCE_COLOR: 3
- run: |
npm version $(node --eval="process.stdout.write(require('./package.json').version)")-dev.$(git rev-parse --short HEAD) --no-git-tag-version
npm publish --no-git-tag-version --tag dev
.github/workflows/npm-publish.yml
@@ -19,5 +19,4 @@ jobs:
- run: echo "//wombat-dressing-room.appspot.com/:_authToken=$AUTH_TOKEN" >> .npmrc
env:
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
- FORCE_COLOR: 3
- run: npm publish
test/win32.test.js
@@ -16,30 +16,30 @@ import assert from 'node:assert'
import { test, describe, beforeEach } from 'node:test'
import '../build/globals.js'
-describe('win32', () => {
+const _describe = process.platform === 'win32' ? describe : describe.skip
+
+_describe('win32', () => {
beforeEach(() => {
$.verbose = false
})
- if (process.platform === 'win32') {
- test('should work with windows-specific commands', async () => {
- const p = await $`echo $0` // Bash is first by default.
- assert.match(p.stdout, /bash/)
- await within(async () => {
- $.shell = which.sync('powershell.exe')
- $.quote = quotePowerShell
- const p = await $`get-host`
- assert.match(p.stdout, /PowerShell/)
- })
+ test('should work with windows-specific commands', async () => {
+ const p = await $`echo $0` // Bash is first by default.
+ assert.match(p.stdout, /bash/)
+ await within(async () => {
+ $.shell = which.sync('powershell.exe')
+ $.quote = quotePowerShell
+ const p = await $`get-host`
+ assert.match(p.stdout, /PowerShell/)
})
+ })
- test('quotePowerShell works', async () => {
- await within(async () => {
- $.shell = which.sync('powershell.exe')
- $.quote = quotePowerShell
- const p = await $`echo ${`Windows 'rulez!'`}`
- assert.match(p.stdout, /Windows 'rulez!'/)
- })
+ test('quotePowerShell works', async () => {
+ await within(async () => {
+ $.shell = which.sync('powershell.exe')
+ $.quote = quotePowerShell
+ const p = await $`echo ${`Windows 'rulez!'`}`
+ assert.match(p.stdout, /Windows 'rulez!'/)
})
- }
+ })
})