Skip to content

Commit

Permalink
chore: update aws-amplify to latest (#4696)
Browse files Browse the repository at this point in the history
  • Loading branch information
reesscot authored Nov 13, 2023
1 parent 1ac4dfa commit ac0eb1e
Show file tree
Hide file tree
Showing 12 changed files with 169 additions and 323 deletions.
1 change: 1 addition & 0 deletions packages/angular/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = {
moduleNameMapper: {
'^uuid$': '<rootDir>/../../node_modules/uuid',
'^nanoid$': '<rootDir>/../../node_modules/nanoid',
axios: '<rootDir>/../../node_modules/axios/lib/axios.js',
},
transform: {
'^.+\\.{ts|tsx}?$': [
Expand Down
1 change: 1 addition & 0 deletions packages/react-core-notifications/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = {
globals: { 'ts-jest': { tsconfig: 'tsconfig.json' } },
moduleNameMapper: {
'^react$': '<rootDir>/node_modules/react',
axios: '<rootDir>/../../node_modules/axios/lib/axios.js', // required because JS v5 uses ESM verison of axios
},
modulePathIgnorePatterns: ['<rootDir>/dist/'],
preset: 'ts-jest',
Expand Down
5 changes: 4 additions & 1 deletion packages/react-core/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ module.exports = {
},
globals: { 'ts-jest': { tsconfig: 'tsconfig.json' } },
modulePathIgnorePatterns: ['<rootDir>/dist/'],
moduleNameMapper: { '^react$': '<rootDir>/node_modules/react' },
moduleNameMapper: {
'^react$': '<rootDir>/node_modules/react',
axios: '<rootDir>/../../node_modules/axios/lib/axios.js', // required because JS v5 uses ESM verison of axios
},
preset: 'ts-jest',
testEnvironment: 'jsdom',
};
1 change: 1 addition & 0 deletions packages/react-geo/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {
globals: { 'ts-jest': { tsconfig: 'tsconfig.json' } },
moduleNameMapper: {
'^react$': '<rootDir>/node_modules/react',
axios: '<rootDir>/../../node_modules/axios/lib/axios.js', // required because JS v5 uses ESM verison of axios
},
modulePathIgnorePatterns: ['<rootDir>/dist/'],
preset: 'ts-jest',
Expand Down
1 change: 1 addition & 0 deletions packages/react-liveness/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {
globals: { 'ts-jest': { tsconfig: 'tsconfig.json' } },
moduleNameMapper: {
'^react$': '<rootDir>/node_modules/react',
axios: '<rootDir>/../../node_modules/axios/lib/axios.js', // required because JS v5 uses ESM verison of axios
},
modulePathIgnorePatterns: ['<rootDir>/dist/'],
preset: 'ts-jest',
Expand Down
1 change: 1 addition & 0 deletions packages/react-native/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
moduleNameMapper: {
'^react$': '<rootDir>/node_modules/react',
'^react-native$': '<rootDir>/node_modules/react-native',
axios: '<rootDir>/../../node_modules/axios/lib/axios.js', // required because JS v5 uses ESM verison of axios
},
coverageThreshold: {
global: {
Expand Down
1 change: 1 addition & 0 deletions packages/react-notifications/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {
globals: { 'ts-jest': { tsconfig: 'tsconfig.json' } },
moduleNameMapper: {
'^react$': '<rootDir>/node_modules/react',
axios: '<rootDir>/../../node_modules/axios/lib/axios.js', // required because JS v5 uses ESM verison of axios
},
modulePathIgnorePatterns: ['<rootDir>/dist/'],
preset: 'ts-jest',
Expand Down
1 change: 1 addition & 0 deletions packages/react-storage/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {
globals: { 'ts-jest': { tsconfig: 'tsconfig.json' } },
moduleNameMapper: {
'^react$': '<rootDir>/node_modules/react',
axios: '<rootDir>/../../node_modules/axios/lib/axios.js', // required because JS v5 uses ESM verison of axios
},
modulePathIgnorePatterns: ['<rootDir>/dist/'],
preset: 'ts-jest',
Expand Down
1 change: 1 addition & 0 deletions packages/react/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {
globals: { 'ts-jest': { tsconfig: 'tsconfig.json' } },
moduleNameMapper: {
'^react$': '<rootDir>/node_modules/react',
axios: '<rootDir>/../../node_modules/axios/lib/axios.js', // required because JS v5 uses ESM verison of axios
},
modulePathIgnorePatterns: ['<rootDir>/dist/'],
preset: 'ts-jest',
Expand Down
3 changes: 3 additions & 0 deletions packages/ui/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ module.exports = {
},
preset: 'ts-jest',
testEnvironment: 'jsdom',
moduleNameMapper: {
axios: '<rootDir>/../../node_modules/axios/lib/axios.js', // required because JS v5 uses ESM verison of axios
},
modulePathIgnorePatterns: ['<rootDir>/dist/'],
globals: {
'ts-jest': {
Expand Down
3 changes: 3 additions & 0 deletions packages/vue/jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ module.exports = {
},
testEnvironment: 'jsdom',
verbose: true,
moduleNameMapper: {
axios: '<rootDir>/../../node_modules/axios/lib/axios.js', // required because JS v5 uses ESM verison of axios
},
moduleFileExtensions: ['js', 'ts', 'json', 'vue', 'tsx'],
modulePathIgnorePatterns: ['<rootDir>/dist/'],
setupFilesAfterEnv: ['./jest.setup.ts'],
Expand Down
Loading

0 comments on commit ac0eb1e

Please sign in to comment.