샘플
Jest requires Node VM modules (--experimental-vm-modules) and transform: {} to run real ESM, rejecting .js in extensionsToTreatAsEsm and failing top-level await and import.meta in default CJS pipeline
sha256:d9b320028402b47b7ce4d57f7d1a0e00dbc8b5fbac297efcd2e6a408a4e6b230
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Jest requires Node VM modules (--experimental-vm-modules) and transform: {} to run real ESM, rejecting .js in extensionsToTreatAsEsm and failing top-level await and import.meta in default CJS pipeline HOW
- 패키지
- jest 29.7.0
- 환경
- node
- 생성일
- 2026-08-15T14:34:44Z
컨트랙트
- assert validateExtensionsToTreatAsEsm rejects .js, .cjs, and .mjs
- assert unstable_shouldLoadAsEsm returns false without --experimental-vm-modules
- assert unstable_shouldLoadAsEsm returns true for .mjs and custom extensions with --experimental-vm-modules
- assert default CJS execution pipeline fails on top-level await and import.meta with SyntaxError
- assert Jest with --experimental-vm-modules and transform: {} successfully executes native ESM tests
파일
- NOTES.md
- csx.json
- fixtures/esm-feature.mjs
- fixtures/esm.test.mjs
- fixtures/jest.esm.config.json
- package-lock.json
- package.json
- test/contract.mjs
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-15 · ed25519:d91480838ac982c9