11cb0ef41Sopenharmony_ciimport '../common/index.mjs'; 21cb0ef41Sopenharmony_ci 31cb0ef41Sopenharmony_ciimport { strictEqual, deepStrictEqual } from 'assert'; 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_ciimport { createRequire } from 'module'; 61cb0ef41Sopenharmony_ci 71cb0ef41Sopenharmony_ciimport mod from '../fixtures/es-modules/json-cache/mod.cjs'; 81cb0ef41Sopenharmony_ciimport another from '../fixtures/es-modules/json-cache/another.cjs'; 91cb0ef41Sopenharmony_ciimport test from '../fixtures/es-modules/json-cache/test.json' with 101cb0ef41Sopenharmony_ci { type: 'json' }; 111cb0ef41Sopenharmony_ci 121cb0ef41Sopenharmony_ciconst require = createRequire(import.meta.url); 131cb0ef41Sopenharmony_ci 141cb0ef41Sopenharmony_ciconst modCjs = require('../fixtures/es-modules/json-cache/mod.cjs'); 151cb0ef41Sopenharmony_ciconst anotherCjs = require('../fixtures/es-modules/json-cache/another.cjs'); 161cb0ef41Sopenharmony_ciconst testCjs = require('../fixtures/es-modules/json-cache/test.json'); 171cb0ef41Sopenharmony_ci 181cb0ef41Sopenharmony_cistrictEqual(mod.one, 1); 191cb0ef41Sopenharmony_cistrictEqual(another.one, 'zalgo'); 201cb0ef41Sopenharmony_cistrictEqual(test.one, 'it comes'); 211cb0ef41Sopenharmony_ci 221cb0ef41Sopenharmony_cideepStrictEqual(mod, modCjs); 231cb0ef41Sopenharmony_cideepStrictEqual(another, anotherCjs); 241cb0ef41Sopenharmony_cideepStrictEqual(test, testCjs); 25