diff --git a/.swcrc b/.swcrc deleted file mode 100644 index 37f665a..0000000 --- a/.swcrc +++ /dev/null @@ -1,23 +0,0 @@ -// For using Jest with SWC (Speedy Web Compiler). -// This is the configuration file for the transformation of the code before testing. -{ - "$schema": "https://json.schemastore.org/swcrc", - "jsc": { - "parser": { - "syntax": "typescript", - "dynamicImport": false, - "decorators": true - }, - "transform": { - "legacyDecorator": true, - "decoratorMetadata": true - }, - "target": "es2018", - "loose": false, - "externalHelpers": false, - - // Note that "keepClassNames" requires v1.2.50 or upper and requires target to be es2016 or upper. - "keepClassNames": true - }, - "minify": false -} diff --git a/jest.config.js b/jest.config.js deleted file mode 100644 index f114253..0000000 --- a/jest.config.js +++ /dev/null @@ -1,17 +0,0 @@ -/** @type {import('jest').Config} */ -const config = { - verbose: true, - moduleNameMapper: { - '^@/(.*)$': '/src/$1', - '^~/(.*)$': '/src/$1', - }, - testTimeout: 10000, - moduleFileExtensions: ['ts', 'js', 'vue', 'json'], - transform: { - '^.+\\.(t|j)sx?$': '@swc/jest', - }, - testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$', -} - -// eslint-disable-next-line no-undef -module.exports = config