Skip to content

Commit

Permalink
chore(deps): update typescript-eslint monorepo to v5.14.0 (minor) (#561)
Browse files Browse the repository at this point in the history
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: TESTELIN Geoffrey <[email protected]>
  • Loading branch information
3 people authored Mar 7, 2022
1 parent 4f7799f commit 041157f
Show file tree
Hide file tree
Showing 13 changed files with 178 additions and 173 deletions.
2 changes: 1 addition & 1 deletion .run/All Integration Issues Tests.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<node-options value="--max_old_space_size=5000" />
<jest-package value="$PROJECT_DIR$/node_modules/jest" />
<working-dir value="$PROJECT_DIR$" />
<jest-options value="--selectProjects integration-issues" />
<jest-options value="--selectProjects integrationIssues" />
<envs />
<scope-kind value="ALL" />
<method v="2" />
Expand Down
2 changes: 1 addition & 1 deletion .run/All Integration Pull Requests Tests.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<node-options value="--max_old_space_size=5000" />
<jest-package value="$PROJECT_DIR$/node_modules/jest" />
<working-dir value="$PROJECT_DIR$" />
<jest-options value="--selectProjects integration-pull-requests" />
<jest-options value="--selectProjects integrationPullRequests" />
<envs />
<scope-kind value="ALL" />
<method v="2" />
Expand Down
2 changes: 1 addition & 1 deletion .run/All Integration Tests.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<node-options value="--max_old_space_size=5000" />
<jest-package value="$PROJECT_DIR$/node_modules/jest" />
<working-dir value="$PROJECT_DIR$" />
<jest-options value="--selectProjects integration-issues integration-pull-requests" />
<jest-options value="--selectProjects integrationIssues integrationPullRequests" />
<envs />
<scope-kind value="ALL" />
<method v="2" />
Expand Down
2 changes: 1 addition & 1 deletion .run/All Tests.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<node-options value="--max_old_space_size=5000" />
<jest-package value="$PROJECT_DIR$/node_modules/jest" />
<working-dir value="$PROJECT_DIR$" />
<jest-options value="--selectProjects unit integration-issues integration-pull-requests" />
<jest-options value="--selectProjects unit integrationIssues integrationPullRequests" />
<envs />
<scope-kind value="ALL" />
<method v="2" />
Expand Down
1 change: 0 additions & 1 deletion documentation/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 23 additions & 17 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const createProject = (type) => {

// A set of global variables that need to be available in all test environments
globals: {
// eslint-disable-next-line @typescript-eslint/naming-convention
'ts-jest': {
compiler: `ttypescript`,
},
Expand All @@ -89,9 +90,13 @@ const createProject = (type) => {

// A map from regular expressions to module names that allow to stub out resources with a single module
moduleNameMapper: {
// eslint-disable-next-line @typescript-eslint/naming-convention
'@core/(.*)': `<rootDir>/src/core/$1`,
// eslint-disable-next-line @typescript-eslint/naming-convention
'@github/(.*)': `<rootDir>/src/github/$1`,
// eslint-disable-next-line @typescript-eslint/naming-convention
'@tests/(.*)': `<rootDir>/tests/$1`,
// eslint-disable-next-line @typescript-eslint/naming-convention
'@utils/(.*)': `<rootDir>/src/utils/$1`,
},

Expand Down Expand Up @@ -190,6 +195,7 @@ const createProject = (type) => {

// A map from regular expressions to paths to transformers
transform: {
// eslint-disable-next-line @typescript-eslint/naming-convention
'^.+\\.ts?$': `ts-jest`,
},

Expand All @@ -216,28 +222,28 @@ const createProject = (type) => {
*/
function getTestMatch(type) {
return {
'integration-issues': [
integrationIssues: [
`<rootDir>/tests/issues/**/*.spec.ts`,
`<rootDir>/tests/issues/**/*.spec.tsx`,
`<rootDir>/tests/issues/**/*.spec.js`,
],
'integration-issues-ci': [
integrationIssuesCi: [
`<rootDir>/tests/issues/**/*.spec.ts`,
`<rootDir>/tests/issues/**/*.spec.tsx`,
`<rootDir>/tests/issues/**/*.spec.js`,
],
'integration-pull-requests': [
integrationPullRequests: [
`<rootDir>/tests/pull-requests/**/*.spec.ts`,
`<rootDir>/tests/pull-requests/**/*.spec.tsx`,
`<rootDir>/tests/pull-requests/**/*.spec.js`,
],
'integration-pull-requests-ci': [
integrationPullRequestsCi: [
`<rootDir>/tests/pull-requests/**/*.spec.ts`,
`<rootDir>/tests/pull-requests/**/*.spec.tsx`,
`<rootDir>/tests/pull-requests/**/*.spec.js`,
],
'unit': [`<rootDir>/src/**/*.spec.ts`, `<rootDir>/src/**/*.spec.tsx`, `<rootDir>/src/**/*.spec.js`],
'unit-ci': [`<rootDir>/src/**/*.spec.ts`, `<rootDir>/src/**/*.spec.tsx`, `<rootDir>/src/**/*.spec.js`],
unit: [`<rootDir>/src/**/*.spec.ts`, `<rootDir>/src/**/*.spec.tsx`, `<rootDir>/src/**/*.spec.js`],
unitCi: [`<rootDir>/src/**/*.spec.ts`, `<rootDir>/src/**/*.spec.tsx`, `<rootDir>/src/**/*.spec.js`],
}[type];
}

Expand All @@ -247,22 +253,22 @@ function getTestMatch(type) {
*/
function getProjectColor(type) {
return {
'integration-issues': `red`,
'integration-issues-ci': `red`,
'integration-pull-requests': `blue`,
'integration-pull-requests-ci': `blue`,
'unit': `green`,
'unit-ci': `green`,
integrationIssues: `red`,
integrationIssuesCi: `red`,
integrationPullRequests: `blue`,
integrationPullRequestsCi: `blue`,
unit: `green`,
unitCi: `green`,
}[type];
}

module.exports = {
projects: [
createProject(`integration-issues`),
createProject(`integration-issues-ci`),
createProject(`integration-pull-requests`),
createProject(`integration-pull-requests-ci`),
createProject(`integrationIssues`),
createProject(`integrationIssuesCi`),
createProject(`integrationPullRequests`),
createProject(`integrationPullRequestsCi`),
createProject(`unit`),
createProject(`unit-ci`),
createProject(`unitCi`),
],
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 041157f

Please sign in to comment.