Skip to content

Commit ee2dbb2

Browse files
committed
FIXUP
1 parent 7f7b205 commit ee2dbb2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/nodejs-16.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ jobs:
2020
with:
2121
node-version: 16
2222
- run: npm install
23-
- name: Patch vitest imports and run tests
24-
run: |
25-
for f in test/*.test.ts; do [ -e "$f" ] || exit 0; sed --version >/dev/null 2>&1 && sed -i "s@'vite-plus/test'@'vitest'@g" "$f" || sed -i '' "s@'vite-plus/test'@'vitest'@g" "$f"; done
26-
NODE_OPTIONS="--require ./test/patch-for-node16-18.cjs" npx vitest@3 && npm run build && npm pack && npx attw --pack
23+
- name: Patch vitest imports
24+
run: for f in test/*.test.ts; do [ -e "$f" ] || exit 0; sed --version >/dev/null 2>&1 && sed -i "s@'vite-plus/test'@'vitest'@g" "$f" || sed -i '' "s@'vite-plus/test'@'vitest'@g" "$f"; done
25+
- run: NODE_OPTIONS="--require ./test/patch-for-node16-18.cjs" npx vitest@3 && npm run build && npm pack && npx attw --pack
2726
- run: npm run build
2827
- run: node -v
2928
- run: npm run test-node16

0 commit comments

Comments
 (0)