This repository was archived by the owner on Jun 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit c414219c36405e004f6eb3d874becc0c33cc5fed Author: gantrol <[email protected]> Date: Thu Feb 16 18:06:52 2023 +0800 fix: 一堆问题,不过md导出能用了 commit e08cc1b32e138569e5cf3731315d84c3d708c3b0 Author: gantrol <[email protected]> Date: Thu Feb 16 17:13:23 2023 +0800 feat: md dirty impl fix: index problem in export json refs commit 24adcb30eff23be9c440ca6af343f80c52fc3e63 Author: gantrol <[email protected]> Date: Thu Feb 16 10:28:14 2023 +0800 typo: 调整样式
- Loading branch information
gantrol
committed
Feb 16, 2023
1 parent
2dc6c4e
commit 27729f3
Showing
11 changed files
with
2,199 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { createRequire } from "module" | ||
import { pathsToModuleNameMapper } from "ts-jest" | ||
|
||
const require = createRequire(import.meta.url) | ||
const tsconfig = require("./tsconfig.json") | ||
|
||
/** | ||
* @type {import('@jest/types').Config.InitialOptions} | ||
*/ | ||
|
||
const config = { | ||
setupFiles: ["jest-webextension-mock"], | ||
extensionsToTreatAsEsm: [".ts", ".tsx"], | ||
testRegex: ["^.+\\.test.tsx?$"], | ||
moduleNameMapper: pathsToModuleNameMapper(tsconfig.compilerOptions.paths, { | ||
prefix: "<rootDir>/" | ||
}), | ||
testEnvironment: "jsdom", | ||
transform: { | ||
"^.+\\.ts?$": ["ts-jest", { isolatedModules: true, useESM: true }], | ||
"^.+\\.tsx?$": ["ts-jest", { useESM: true, tsconfig: { jsx: "react-jsx" } }] | ||
} | ||
} | ||
|
||
export default config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.