Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to yarn v2 #7575

Merged
merged 24 commits into from
Sep 27, 2021
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
e36ffec
init yarn v2
clemsos Sep 22, 2021
3e3a52a
remove local yarn.lock to prevent breaks
clemsos Sep 23, 2021
c664a5f
update dockerfile
clemsos Sep 23, 2021
3023055
adapt unlock-js build
clemsos Sep 23, 2021
f29f7cb
updated lockfile
clemsos Sep 23, 2021
1155daa
add prod-install plugin
clemsos Sep 23, 2021
31a80f8
use prefixed workspace: in package.json
clemsos Sep 23, 2021
731532c
yarn deploy-plugin for prod app
clemsos Sep 23, 2021
cbeb0e0
lockfile use workspaces
clemsos Sep 23, 2021
2ba3ddf
eslint-cofig resolve through workspace
clemsos Sep 23, 2021
39f1ea2
remove pre- prefixed yarn tasks
clemsos Sep 23, 2021
f173f71
remove unused lockfiles
clemsos Sep 23, 2021
b1e55e5
unlock-js fix yarn task
clemsos Sep 23, 2021
a72e4e5
Merge branch 'master' of github.com:unlock-protocol/unlock into yarn-v2
clemsos Sep 23, 2021
9515c68
update lockfile
clemsos Sep 23, 2021
a4fc4b9
Merge branch 'master' of github.com:unlock-protocol/unlock into yarn-v2
clemsos Sep 23, 2021
6b25137
explicitely import optional-chaining in babel conf
clemsos Sep 23, 2021
3c743c5
make jest happy with bablerc
clemsos Sep 24, 2021
9a222a9
unlock-app jest config to support babel+ts
clemsos Sep 24, 2021
714eb25
Merge branch 'master' of github.com:unlock-protocol/unlock into yarn-v2
clemsos Sep 24, 2021
53f906a
fix unlock-app jest testing
clemsos Sep 27, 2021
c304019
ts-jest preset, rename babelrc, fix jest mock
clemsos Sep 27, 2021
1e3178b
avoid mock hoisting
clemsos Sep 27, 2021
fe20cbc
jest explicit node modules ref
clemsos Sep 27, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions unlock-app/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,24 @@ module.exports = {
'<rootDir>/node_modules/',
'<rootDir>/src/__tests__/test-helpers/',
],
moduleDirectories: ["node_modules", "src"],
moduleDirectories: ["node_modules", "<rootDir>/src"],
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json'],
transform: {
'^.+\\.(js|jsx|tsx)$': ['<rootDir>/../node_modules/babel-jest', {
presets: ['next/babel'],
plugins: ['@babel/plugin-proposal-optional-chaining']
'^.+\\.(js|jsx|tsx)$': [
'<rootDir>/../node_modules/babel-jest', {
presets: [
'next/babel',
["@babel/preset-env", { "modules": "auto" }]
],
plugins: [
'@babel/plugin-proposal-optional-chaining'
]
}],
'^.+\\.(ts)$': 'ts-jest',
'^.+\\.(js|ts|tsx)$': 'ts-jest',
},
coveragePathIgnorePatterns: ['/node_modules/', 'src/stories/.*/*.stories.js'],
transformIgnorePatterns: [
"/node_modules/(?!ethereum-cryptography)",
'[/\\\\]node_modules[/\\\\](?!(ethereum-cryptography)).+\\.(js|jsx|ts|tsx)$',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks a bit scary but let's hope we can at least refactor on used a shared module for all this soon!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes I kept the original regex... scary indeed

],
collectCoverage: true,
coverageThreshold: {
Expand Down