chore: 整理 third-party Dark Reader 目录并移除本地说明文件跟踪
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
// @ts-check
|
||||
|
||||
import {dirname} from 'node:path';
|
||||
import {createRequire} from 'node:module';
|
||||
const rootDir = dirname(createRequire(import.meta.url).resolve('../../package.json'));
|
||||
|
||||
/** @type {import('@jest/types').Config.InitialOptions} */
|
||||
const config = {
|
||||
rootDir,
|
||||
testMatch: ['<rootDir>/tests/browser/**/*.tests.ts'],
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js'],
|
||||
testEnvironment: '<rootDir>/tests/browser/environment.js',
|
||||
verbose: true,
|
||||
transform: {'^.+\\.ts(x?)$': ['ts-jest', {tsconfig: '<rootDir>/tests/browser/tsconfig.json'}]},
|
||||
globals: {
|
||||
__DEBUG__: false,
|
||||
__CHROMIUM_MV2__: true,
|
||||
__CHROMIUM_MV3__: false,
|
||||
__FIREFOX_MV2__: false,
|
||||
__THUNDERBIRD__: false,
|
||||
__TEST__: true,
|
||||
product: 'edge',
|
||||
},
|
||||
setupFilesAfterEnv: ['jest-extended/all'],
|
||||
collectCoverage: false,
|
||||
coverageDirectory: 'coverage',
|
||||
collectCoverageFrom: ['<rootDir>/src/**/*.{ts,tsx}'],
|
||||
coveragePathIgnorePatterns: ['^.+\\.d\\.ts$'],
|
||||
};
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user