-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release(required): Amplify JS release (#12670)
- Loading branch information
Showing
329 changed files
with
7,594 additions
and
9,079 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
allow-licenses: | ||
- 'Apache-2.0' | ||
- 'BSL-1.0' | ||
- 'BSD-1-Clause' | ||
- 'BSD-2-Clause-FreeBSD' | ||
- 'BSD-2-Clause' | ||
- 'BSD-3-Clause-Attribution' | ||
- 'BSD-3-Clause' | ||
- 'CC-BY-3.0' | ||
- 'CC-BY-4.0' | ||
- 'curl' | ||
- 'ISC' | ||
- 'JSON' | ||
- 'MIT' | ||
- 'OpenSSL' | ||
- 'PDDL-1.0' | ||
- 'PostgreSQL' | ||
- 'Python-2.0' | ||
- 'Unlicense' | ||
- 'WTFPL' | ||
- 'Zlib' |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** @type {import('jest').Config} */ | ||
module.exports = { | ||
coveragePathIgnorePatterns: [ | ||
'/node_modules/', | ||
'dist', | ||
'__tests__', | ||
], | ||
setupFiles: ['../../jest.setup.js'], | ||
testEnvironment: 'jsdom', | ||
testRegex: '/__tests__/.*\\.(test|spec)\\.[jt]sx?$', | ||
transform: { | ||
'^.+\\.(js|jsx|ts|tsx)$': [ | ||
'ts-jest', | ||
{ | ||
tsconfig: { | ||
allowJs: true, | ||
lib: ['dom', 'es2020'], | ||
noImplicitAny: false, | ||
types: ['jest', 'jsdom'], | ||
}, | ||
}, | ||
], | ||
}, | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Suppress console messages printing during unit tests. | ||
// Comment out log level as necessary (e.g. while debugging tests) | ||
global.console = { | ||
...console, | ||
log: jest.fn(), | ||
debug: jest.fn(), | ||
info: jest.fn(), | ||
warn: jest.fn(), | ||
error: jest.fn(), | ||
}; | ||
|
||
// React Native global | ||
global['__DEV__'] = true; |
Oops, something went wrong.