mirror of
https://github.com/di-sukharev/opencommit.git
synced 2026-01-10 14:18:28 -05:00
npm run test:unit passing locally
Signed-off-by: Tiger Kaovilai <passawit.kaovilai@gmail.com>
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
// Using dynamic imports for ESM compatibility
|
||||
import 'cli-testing-library/extend-expect';
|
||||
// Using Node.js module interop for ESM/CommonJS compatibility
|
||||
import { createRequire } from 'module';
|
||||
|
||||
// Create a require function scoped to this module
|
||||
const moduleRequire = createRequire(import.meta.url);
|
||||
|
||||
// Use the scoped require to import CommonJS modules
|
||||
moduleRequire('cli-testing-library/extend-expect');
|
||||
import { configure } from 'cli-testing-library';
|
||||
import { jest } from '@jest/globals';
|
||||
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
"target": "ES2020",
|
||||
"lib": ["ES6", "ES2020"],
|
||||
|
||||
"module": "CommonJS",
|
||||
"module": "NodeNext",
|
||||
|
||||
"resolveJsonModule": true,
|
||||
"moduleResolution": "Node",
|
||||
"moduleResolution": "NodeNext",
|
||||
|
||||
"allowJs": true,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user