Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,18 @@ const config: Config = {
// testRunner: "jest-circus/runner",

// A map from regular expressions to paths to transformers
// transform: undefined,
transform: {
"^.+\\.ts?$": [
"ts-jest",
{
useESM: true,
},
],
},
extensionsToTreatAsEsm: [".ts"],
moduleNameMapper: {
"^(\\.{1,2}/.*)\\.js$": "$1",
},

// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
// transformIgnorePatterns: [
Expand Down
1,388 changes: 866 additions & 522 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "vite preview",
"deploy": "./deploy $npm_package_version",
"clean": "rm -rf dist",
"test": "jest"
"test": "NODE_OPTIONS=--experimental-vm-modules jest"
},
"type": "module",
"author": "",
Expand Down Expand Up @@ -40,6 +40,7 @@
},
"dependencies": {
"@codemirror/language": "^6.9.0",
"@jest/globals": "^30.0.4",
"@lezer/highlight": "^1.1.6",
"@lezer/lr": "^1.3.10",
"@types/showdown": "^2.0.6",
Expand Down
Loading