forked from topcoder-platform/topcoder-react-utils
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
127 additions
and
132 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
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
2 changes: 1 addition & 1 deletion
2
__tests__/shared/utils/splitComponent/__assets__/RoutingScene/InnerRouter.tsx
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
2 changes: 1 addition & 1 deletion
2
__tests__/shared/utils/splitComponent/__assets__/RoutingScene/RoutingScene.tsx
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
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,10 +1,12 @@ | ||
module.exports = (path, options) => { | ||
const ops = { ...options }; | ||
|
||
// Appending "development" option we ensure that Jest tests use development | ||
// version of the library's build for browsers, which for example contains | ||
// "data-testid" attributes (they are optimized-out of production builds). | ||
if (options.conditions && !options.conditions.includes('development')) { | ||
options.conditions.push('development'); | ||
if (ops.conditions && !ops.conditions.includes('development')) { | ||
ops.conditions = [...ops.conditions, 'development']; | ||
} | ||
|
||
return options.defaultResolver(path, { ...options }); | ||
return options.defaultResolver(path, ops); | ||
}; |
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,3 +1,13 @@ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
/* eslint-disable global-require, import/no-extraneous-dependencies */ | ||
/* global globalThis */ | ||
|
||
import 'raf/polyfill'; | ||
|
||
// TODO: This is a temporary polyfill necessary for react-router, | ||
// as JSDom does not provide TextEncoder, see: | ||
// https://github.com/remix-run/react-router/issues/12363 | ||
if (!globalThis.TextEncoder || !globalThis.TextDecoder) { | ||
const { TextDecoder, TextEncoder } = require('node:util'); | ||
globalThis.TextEncoder = TextEncoder; | ||
globalThis.TextDecoder = TextDecoder; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.