-
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.
Upgrade webpack and related dependencies (#207)
* Upgrade webpack and related dependencies * Many javascript updates * USe ts-jest for transforming all javascript files * Remove babel-jest
- Loading branch information
George Schneeloch
authored
Oct 21, 2021
1 parent
541d196
commit 58bf314
Showing
32 changed files
with
563 additions
and
470 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 @@ | ||
module.exports = { | ||
parser: "@typescript-eslint/parser", | ||
plugins: ["@typescript-eslint"], | ||
extends: ["eslint-config-mitodl", "plugin:@typescript-eslint/recommended"], | ||
settings: { | ||
react: { | ||
version: "16.14.0" | ||
} | ||
}, | ||
env: { | ||
browser: true, | ||
jquery: true, | ||
jest: true | ||
}, | ||
rules: { | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ argsIgnorePattern: "_" } | ||
] | ||
} | ||
} |
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,4 +1,4 @@ | ||
FROM node:12.16.1 | ||
FROM node:16.11.0 | ||
LABEL maintainer "ODL DevOps <[email protected]>" | ||
|
||
RUN apt-get update && apt-get install libelf1 | ||
|
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,18 @@ | ||
module.exports = { | ||
setupFilesAfterEnv: [ | ||
// see https://github.com/ricardo-ch/jest-fail-on-console/issues/4 | ||
'@testing-library/react-hooks/disable-error-filtering.js', | ||
"<rootDir>static/js/test_setup.ts" | ||
], | ||
cacheDirectory: ".jest-cache", | ||
transform: { | ||
"^.+\\.[tj]sx?$": "ts-jest" | ||
}, | ||
moduleNameMapper: { | ||
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": | ||
"<rootDir>/static/js/mocks/fileMock.js", | ||
"\\.(css|less)$": "<rootDir>/static/js/mocks/styleMock.js" | ||
}, | ||
testPathIgnorePatterns: ["<rootDir>/staticfiles/", "<rootDir>/node_modules/"], | ||
testEnvironment: "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
Oops, something went wrong.