Skip to content

Commit

Permalink
Upgrade typescript to 4.9.5 and jest to 29.7.0 (and related packages) (
Browse files Browse the repository at this point in the history
…#1884)

* Upgrade typescript to 4.9.5

* Fix compile issue and put back files in tsconfig.strict.json

* Update test snapshots

* Fix jest tests by upgrading jest and other related packages.

* Attempt to fix playwright test

* Revert "Attempt to fix playwright test"

This reverts commit 8293f34.

* 2nd attempt to fix example test

* fix waitFor in playwright

* Remove unused describe section

* Attempt to fix e2e test

* Revert "Attempt to fix e2e test"

This reverts commit 9745bcd.

* Upgrade playwright to latest

* Revert "Upgrade playwright to latest"

This reverts commit e2ea1d0.

* Error test on e2e

* Revert "Error test on e2e"

This reverts commit 124e376.

* Try to select dropdown item by xpath selector

* Revert "Try to select dropdown item by xpath selector"

This reverts commit 8eb42a6.

* Attempt to wait until page is fully loaded

* Revert "Attempt to wait until page is fully loaded"

This reverts commit bb43fce.

* Use playwright selectOption to select dropdown option

* Revert "Use playwright selectOption to select dropdown option"

This reverts commit daa8cd0.

* Select dropdown option with playwright api instead of manual click

* c7ab4c7ecf7b05f32a85568bce1a667ad8c62703Revert "Select dropdown option with playwright api instead of manual click"

This reverts commit c7ab4c7.

* Wait for 5s after dropdown click

* Revert "Wait for 5s after dropdown click"

This reverts commit 847e9ad.

* Try forcing click

* Revert "Try forcing click"

This reverts commit 29b9fa1.

* Force click on the dropdown and set viewport size bigger.

* Force click on the dropdown and set viewport size bigger.

* try force clicking option

* Skip container test on webkit

* Add branded browsers to e2e tests

---------

Co-authored-by: Ashley Stanton-Nurse <ashleyst@microsoft.com>
  • Loading branch information
languy and analogrelay authored Jul 30, 2024
1 parent 0a1d16d commit bcd8b72
Show file tree
Hide file tree
Showing 112 changed files with 27,390 additions and 29,799 deletions.
7 changes: 0 additions & 7 deletions canvas/README.md

This file was deleted.

1 change: 0 additions & 1 deletion canvas/index.js

This file was deleted.

11 changes: 0 additions & 11 deletions canvas/package.json

This file was deleted.

12 changes: 8 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ module.exports = {
"d3-quadtree": "<rootDir>/node_modules/d3-quadtree/dist/d3-quadtree.min.js",
"d3-scale-chromatic": "<rootDir>/node_modules/d3-scale-chromatic/dist/d3-scale-chromatic.min.js",
"d3-zoom": "<rootDir>/node_modules/d3-zoom/dist/d3-zoom.min.js",
uuid: require.resolve("uuid"), // Force module uuid to resolve with the CJS entry point, because Jest does not support package.json.exports. See https://github.com/uuidjs/uuid/issues/451
},

// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
Expand Down Expand Up @@ -133,7 +134,7 @@ module.exports = {
snapshotSerializers: ["enzyme-to-json/serializer"],

// The test environment that will be used for testing
// testEnvironment: "jest-environment-jsdom",
testEnvironment: "jsdom",
modulePaths: ["node_modules", "<rootDir>/src"],

// Options that will be passed to the testEnvironment
Expand All @@ -157,7 +158,7 @@ module.exports = {
// testResultsProcessor: "./trxProcessor.js",

// This option allows use of a custom test runner
// testRunner: "jasmine2",
testRunner: "jest-circus/runner",

// This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
// testURL: "http://localhost",
Expand All @@ -167,9 +168,9 @@ module.exports = {

// A map from regular expressions to paths to transformers
transform: {
"^.+\\.html?$": "html-loader-jest",
"^.+\\.html?$": "jest-html-loader",
"^.+\\.[t|j]sx?$": "babel-jest",
"^.+\\.svg$": "<rootDir>/svgTransform.js",
"^.+\\.svg$": "<rootDir>/jest/svgTransform.js",
},

// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
Expand All @@ -186,4 +187,7 @@ module.exports = {

// Whether to use watchman for file crawling
// watchman: true,

// TODO: toMatchInlineSnapshot() does not work with prettier 3. Remove when fixed: https://github.com/jestjs/jest/issues/14305
prettierPath: null,
};
File renamed without changes.
Loading

0 comments on commit bcd8b72

Please sign in to comment.