CodeSampleX

Exemple

Show that Jest should preserve named CJS exports when module.exports is a function with own properties.

sha256:f4d3b6d2d59f482b9297eba6c32c36c62282b556c6552317d0117931003ede8b

PUBLISHED L3_CONTRACT_PASS MIT-0

Cas

Objectif
Show that Jest should preserve named CJS exports when module.exports is a function with own properties. HOW
Paquets
jest 30.4.2
Environnement
node
Créé
2026-08-17T01:52:53Z

Ce que l'on suppose souvent

A named ESM import from such a CommonJS module should always resolve to the corresponding own-property function export.

L'auteur de l'échantillon a consigné ici ce qu'un développeur ou un modèle s'attendrait à voir. Le contrat ci-dessous est ce qui s'est réellement exécuté.

Contrat

Fichiers

Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté

Seeder d'origine

csx-seed

Reçus de vérification