Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon committed Jun 23, 2022
1 parent 1ca793a commit 8494944
Show file tree
Hide file tree
Showing 7 changed files with 730 additions and 1,652 deletions.
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,16 @@
"@testing-library/jest-dom": "^5.11.9",
"@testing-library/svelte": "^3.0.3",
"@tsconfig/svelte": "^2.0.1",
"@types/jest": "^26.0.20",
"@types/jest": "^28.1.3",
"@types/node": "^14.14.31",
"@types/node-fetch": "^2.5.8",
"ajv": "^8",
"babel-jest": "^26.6.3",
"babel-jest": "^28.1.1",
"fuzzysort": "^2.0.1",
"gh-pages": "^3.1.0",
"husky": "^7.0.4",
"jest": "^26.6.3",
"jest": "^28.1.1",
"jest-environment-jsdom": "^28.1.1",
"lint-staged": "^12.3.2",
"node-fetch": "^2.6.1",
"prettier": "^2.3.2",
Expand All @@ -44,6 +45,7 @@
"svelte-check": "^2.2.7",
"svelte-jester": "^1.3.0",
"svelte-preprocess": "^4.9.8",
"ts-jest": "^28.0.5",
"tslib": "^2.3.1",
"typescript": "^4.5.4",
"typescript-json-schema": "^0.50.0",
Expand All @@ -58,7 +60,8 @@
"preprocess": true
}
],
"^.+\\.ts$": "ts-jest"
"^.+\\.ts$": "ts-jest",
"^.+\\.mjs$": "babel-jest"
},
"setupFilesAfterEnv": [
"@testing-library/jest-dom/extend-expect"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/Thing.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Fault from "./types/Fault.svelte";
import Vitamin from "./types/Vitamin.svelte";
import VehiclePart from "./types/VehiclePart.svelte";
import MartialArt from "./types/MartialArt.svelte";
import ErrorBoundary from "./ErrorBoundary";
import ErrorBoundary from "./ErrorBoundary.mjs";
import Mutation from "./types/Mutation.svelte";
import MutationCategory from "./types/MutationCategory.svelte";
import MutationType from "./types/MutationType.svelte";
Expand Down
3 changes: 3 additions & 0 deletions src/all.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* @jest-environment jsdom
*/
import "@testing-library/jest-dom/extend-expect";
import { render } from "@testing-library/svelte";
import * as fs from "fs";
Expand Down
3 changes: 3 additions & 0 deletions src/search.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* @jest-environment jsdom
*/
import "@testing-library/jest-dom/extend-expect";
import { render } from "@testing-library/svelte";

Expand Down
3 changes: 3 additions & 0 deletions src/types/item/SpawnedIn.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* @jest-environment jsdom
*/
import "@testing-library/jest-dom";
import { render } from "@testing-library/svelte";
import SpawnedIn from "./SpawnedIn.svelte";
Expand Down
Loading

0 comments on commit 8494944

Please sign in to comment.