Skip to content
Merged
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
1 change: 1 addition & 0 deletions frontends/api/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const config: Config.InitialOptions = {
...baseConfig.setupFilesAfterEnv,
"./test-utils/setupJest.ts",
],
transformIgnorePatterns: ["node_modules/(?!@faker-js).+"],
}

export default config
2 changes: 1 addition & 1 deletion frontends/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"react": "^19"
},
"devDependencies": {
"@faker-js/faker": "^9.9.0",
"@faker-js/faker": "^10.0.0",
"@testing-library/react": "^16.3.0",
"enforce-unique": "^1.3.0",
"jest": "^29.7.0",
Expand Down
6 changes: 3 additions & 3 deletions frontends/api/src/mitxonline/test-utils/factories/pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const priceItem: Factory<PriceItem> = (override) => {
const uniqueFacultyId = new UniqueEnforcer()
const faculty: Factory<Faculty> = (override) => {
return {
feature_image_src: faker.image.urlLoremFlickr({ width: 640, height: 480 }),
feature_image_src: faker.image.url({ width: 640, height: 480 }),
id: uniqueFacultyId.enforce(() => faker.number.int()),
instructor_bio_long: makeHTMLParagraph(2),
instructor_bio_short: faker.lorem.sentences(2),
Expand Down Expand Up @@ -247,7 +247,7 @@ const programPageItem: PartialFactory<ProgramPageItem> = (override) => {
title_2: faker.person.jobTitle(),
title_3: "",
organization: "Massachusetts Institute of Technology",
signature_image: faker.image.urlLoremFlickr({
signature_image: faker.image.url({
width: 200,
height: 100,
}),
Expand Down Expand Up @@ -306,7 +306,7 @@ const programPageItem: PartialFactory<ProgramPageItem> = (override) => {
},
],
page: {
feature_image_src: faker.image.urlLoremFlickr({
feature_image_src: faker.image.url({
width: 1134,
height: 675,
}),
Expand Down
1 change: 1 addition & 0 deletions frontends/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const projectsConfig: Config.InitialOptions = {
collectCoverage: true,
coverageDirectory: "coverage",
projects: ["<rootDir>/*/jest.config.ts"],
transformIgnorePatterns: ["node_modules/(?!@faker-js).+"],
watchPlugins: [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname",
Expand Down
1 change: 1 addition & 0 deletions frontends/jest.jsdom.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const config: Config.InitialOptions &
"\\.(css|scss)$": "ol-test-utilities/filemocks/filemock.js",
},
rootDir: "./src",
transformIgnorePatterns: ["node_modules/(?!@faker-js).+"],
}

export default config
1 change: 1 addition & 0 deletions frontends/main/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const config: Config.InitialOptions = {
...baseConfig.setupFilesAfterEnv,
"./test-utils/setupJest.tsx",
],
transformIgnorePatterns: ["node_modules/(?!@faker-js).+"],
moduleNameMapper: {
...baseConfig.moduleNameMapper,
"^@/(.*)$": path.resolve(__dirname, "src/$1"),
Expand Down
2 changes: 1 addition & 1 deletion frontends/main/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"yup": "^1.4.0"
},
"devDependencies": {
"@faker-js/faker": "^9.9.0",
"@faker-js/faker": "^10.0.0",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.5.2",
Expand Down
2 changes: 1 addition & 1 deletion frontends/ol-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
"devDependencies": {
"@chromatic-com/storybook": "^3.2.7",
"@faker-js/faker": "^9.9.0",
"@faker-js/faker": "^10.0.0",
"@storybook/addon-actions": "^8.2.9",
"@storybook/addon-essentials": "^8.2.9",
"@storybook/addon-interactions": "^8.2.9",
Expand Down
2 changes: 1 addition & 1 deletion frontends/ol-test-utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"./mocks/nextNavigation": "./src/mocks/nextNavigation.ts"
},
"dependencies": {
"@faker-js/faker": "^9.9.0",
"@faker-js/faker": "^10.0.0",
"@testing-library/react": "^16.3.0",
"css-mediaquery": "^0.1.2",
"dom-accessibility-api": "^0.7.0",
Expand Down
2 changes: 1 addition & 1 deletion frontends/ol-utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@dnd-kit/core": "^6.0.8",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.1",
"@faker-js/faker": "^9.9.0",
"@faker-js/faker": "^10.0.0",
"api": "workspace:*",
"classnames": "^2.3.2",
"currency-symbol-map": "^5.1.0",
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading