Skip to content

Commit

Permalink
Merge pull request #437 from NYPL/SFR-1689_upgrade_testing_library
Browse files Browse the repository at this point in the history
SFR-1689: Upgrade testing library to v14
  • Loading branch information
jackiequach authored Sep 14, 2023
2 parents 358c102 + d844b72 commit 3890fc5
Show file tree
Hide file tree
Showing 18 changed files with 2,370 additions and 1,872 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## [Pre-release]

- Fix: Small adjustments to Playwright tests
- Upgrade testing-library packages to v14 and jest to v29

## [0.17.4]

Expand Down
10 changes: 6 additions & 4 deletions jest.config.js → jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// jest.config.js
const { defaults } = require("jest-config");
module.exports = {
import type { Config } from "jest";

const config: Config = {
moduleFileExtensions: ["js", "ts", "tsx"],
moduleNameMapper: {
"^~(.*)$": "<rootDir>$1",
Expand All @@ -11,9 +11,11 @@ module.exports = {
"testUtils",
"fixtures",
"componentHelpers",
"/playwright/"
"/playwright/",
],
setupFilesAfterEnv: ["./jest.setup.ts"],
resetMocks: true,
testEnvironment: "jsdom",
};

export default config;
Loading

1 comment on commit 3890fc5

@vercel
Copy link

@vercel vercel bot commented on 3890fc5 Sep 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.