-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2630 from woocommerce/feature/2459-campaign-creat…
…ion-flow-2458-merged 2459 Campaign creation flow and 2458 merged
- Loading branch information
Showing
202 changed files
with
26,711 additions
and
44,306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
engine-strict=true | ||
|
||
# The legacy-peer-deps option eliminates React versioning conflicts in npm peer | ||
# dependencies between @wordpress/* and @woocommerce/*. It should be removed | ||
# after they don't have versioning conflicts. | ||
legacy-peer-deps=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v16 | ||
v20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ module.exports = { | |
setupFiles: [ 'core-js', '<rootDir>/js/src/tests/jest-unit.setup.js' ], | ||
transformIgnorePatterns: [ | ||
// Fix that `[email protected]` doesn't provide the CommonJS build, so it needs to be transformed. | ||
'<rootDir>/node_modules/(?!is-plain-obj/)', | ||
'<rootDir>/node_modules/(?!@woocommerce/components/node_modules/is-plain-obj/)', | ||
], | ||
moduleNameMapper: { | ||
'\\.(png|jpg)$': '<rootDir>/tests/mocks/assets/imageMock.js', | ||
|
@@ -20,6 +20,18 @@ module.exports = { | |
'<rootDir>/js/src/tests/dependencies/woocommerce/settings', | ||
'@automattic/calypso-config': | ||
'<rootDir>/js/src/tests/dependencies/automattic/calypso-config', | ||
// Ignore that 'qrcode.react' module is incorrectly listed in dev dependencies of '@automattic/components'. | ||
// Ref: https://github.com/Automattic/wp-calypso/blob/%40automattic/components%402.1.1/packages/components/package.json#L72 | ||
'@automattic/components': | ||
'<rootDir>/js/src/tests/dependencies/automattic/components', | ||
// Fix `@woocommerce/components` still using incompatible `@woocommerce/currency`. | ||
'@woocommerce/currency': require.resolve( '@woocommerce/currency' ), | ||
// Fix the React versioning conflicts between @wordpress/* and @woocommerce/*. | ||
// It should be removed after they don't have versioning conflicts. | ||
'^react$': require.resolve( 'react' ), | ||
// Force 'uuid' to resolve with the CommonJS entry point, because jest doesn't | ||
// support `package.json.exports`. | ||
'^uuid$': require.resolve( 'uuid' ), | ||
}, | ||
// Exclude e2e tests from unit testing. | ||
testPathIgnorePatterns: [ | ||
|
@@ -38,9 +50,16 @@ module.exports = { | |
'<rootDir>/js/build-dev', | ||
], | ||
globals: { | ||
wcAdminFeatures: { | ||
navigation: false, | ||
wcSettings: { | ||
currency: { | ||
code: 'USD', | ||
precision: 2, | ||
symbol: '$', | ||
symbolPosition: 'left', | ||
decimalSeparator: '.', | ||
priceFormat: '%1$s%2$s', | ||
thousandSeparator: ',', | ||
}, | ||
}, | ||
}, | ||
timers: 'fake', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.