Skip to content

Commit f10bc97

Browse files
committed
FIXUP
1 parent ee2dbb2 commit f10bc97

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/nodejs-16.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ jobs:
2121
node-version: 16
2222
- run: npm install
2323
- 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
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+
jq 'del(.overrides)' package.json > package.json.tmp && mv package.json.tmp package.json
27+
npm install -D vitest@3
28+
- run: NODE_OPTIONS="--require ./test/patch-for-node16-18.cjs" npx vitest && npm run build && npm pack && npx attw --pack
2629
- run: npm run build
2730
- run: node -v
2831
- run: npm run test-node16

0 commit comments

Comments
 (0)