Stencil peproduction #5358
We get the following error after updating Stencil to version 4.12:
[53:59.8] @stencil/core
[54:00.3] v4.12.2 🎯
[54:00.5] testing spec files
[54:00.6] jest args: --spec --json --outputFile dist/jest-test-results.json --max-workers=8
FAIL src/components/button/test/snapshot.spec.tsx
● Test suite failed to run
ENOENT: no such file or directory, open 'node:crypto'
at Runtime.readFile (../node_modules/.pnpm/jest-runtime@26.6.3/node_modules/jest-runtime/build/index.js:1987:21)
at ../node_modules/.pnpm/@stencil+core@4.12.2/node_modules/@stencil/core/compiler/stencil.js:55:21
at Object.<anonymous> (../node_modules/.pnpm/@stencil+core@4.12.2/node_modules/@stencil/core/compiler/stencil.js:277787:3)
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 4.386 s
Ran all test suites.
Test results written to: dist/jest-test-results.json
ELIFECYCLE Test failed. See above for more details.
One-line command:
pnpm clean && pnpm i && pnpm i @stencil/core@4.11.0 && pnpm test && pnpm i @stencil/core@4.12.2 && pnpm test
- Clone the repository:
git clone https://github.com/deleonio/kolibri-library.git
- Install the dependencies:
pnpm i
- Install Stencil to version 4.11:
pnpm i @stencil/core@4.11.0
- Run the tests:
pnpm test
- Update Stencil to version 4.12:
pnpm i @stencil/core@4.12.2
- Run the tests again:
pnpm test