mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
120e0f6d23
Replace fs-extra/rimraf with native node:fs, lodash with structuredClone/spread, ts-node with tsx, minimist with node:util parseArgs, winston with console logger, async-promise-queue with native Promise concurrency. Use promisify for child_process.exec. Normalize all imports to use node: protocol. Extract Jest config to jest.config.ts and replace ts-jest with @swc/jest.
13 lines
293 B
TypeScript
13 lines
293 B
TypeScript
import type { Config } from 'jest';
|
|
|
|
const config: Config = {
|
|
testEnvironment: 'jsdom',
|
|
transform: {
|
|
'^.+\\.tsx?$': '@swc/jest',
|
|
},
|
|
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(js?|ts?)$',
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
|
|
};
|
|
|
|
export default config;
|