-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from qupaya/next
switch to @typestrong/ts-mockito
- Loading branch information
Showing
44 changed files
with
29,423 additions
and
29,882 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 |
---|---|---|
|
@@ -9,21 +9,20 @@ on: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
if: "!contains(github.event.head_commit.message, '[skip ci]')" | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- name: Check-out repository | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false # needed for semantic-release, see https://github.com/semantic-release/git/issues/196#issuecomment-601310576 | ||
|
||
- name: Setup Node.js 16.x | ||
uses: actions/setup-node@v1 | ||
- name: Setup Node.js 18.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
node-version-file: 'package.json' | ||
|
||
- name: Install node dependences | ||
run: npm ci | ||
|
@@ -35,7 +34,7 @@ jobs: | |
run: npm test -- --codeCoverage --coverageReporters=json --coverageReporters=text --coverageReporters=text-summary --skip-nx-cache | ||
|
||
- name: Test coverage unit tests | ||
uses: codecov/codecov-action@v1.0.14 | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
name: ng-mockito (unit tests) | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
@@ -44,7 +43,7 @@ jobs: | |
fail_ci_if_error: false | ||
|
||
- name: Test coverage integration tests | ||
uses: codecov/codecov-action@v1.0.14 | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
name: ng-mockito (integration tests) | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
@@ -58,7 +57,7 @@ jobs: | |
- name: Release | ||
if: github.event_name == 'push' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN_QUPAYA_BOT }} | ||
GITHUB_TOKEN: ${{ secrets.QUPAYA_BOT }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN_QUPAYA_BOT }} | ||
GIT_AUTHOR_NAME: qupaya-bot | ||
GIT_AUTHOR_EMAIL: [email protected] | ||
|
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 |
---|---|---|
|
@@ -41,3 +41,5 @@ Thumbs.db | |
|
||
# we use npm | ||
yarn.lock | ||
|
||
.nx/cache |
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 +1 @@ | ||
v16 | ||
v20 |
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 |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
|
||
/dist | ||
/coverage | ||
|
||
/.nx/cache |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
const { getJestProjects } = require('@nrwl/jest'); | ||
const { getJestProjects } = require('@nx/jest'); | ||
|
||
module.exports = { projects: getJestProjects() }; | ||
export default { projects: getJestProjects() }; |
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,15 @@ | ||
const nxPreset = require('@nx/jest/preset').default; | ||
|
||
module.exports = { | ||
...nxPreset, | ||
/* TODO: Update to latest Jest snapshotFormat | ||
* By default Nx has kept the older style of Jest Snapshot formats | ||
* to prevent breaking of any existing tests with snapshots. | ||
* It's recommend you update to the latest format. | ||
* You can do this by removing snapshotFormat property | ||
* and running tests with --update-snapshot flag. | ||
* Example: "nx affected --targets=test --update-snapshot" | ||
* More info: https://jestjs.io/docs/upgrading-to-jest29#snapshot-format | ||
*/ | ||
snapshotFormat: { escapeString: true, printBasicPrototype: true }, | ||
}; |
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
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,23 +1,25 @@ | ||
module.exports = { | ||
/* eslint-disable */ | ||
export default { | ||
displayName: 'ng-mockito-integration', | ||
|
||
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'], | ||
globals: { | ||
'ts-jest': { | ||
stringifyContentPathRegex: '\\.(html|svg)$', | ||
|
||
tsconfig: '<rootDir>/tsconfig.spec.json', | ||
}, | ||
}, | ||
globals: {}, | ||
coverageDirectory: '../../../coverage/libs/ng-mockito/integration', | ||
snapshotSerializers: [ | ||
'jest-preset-angular/build/serializers/no-ng-attributes', | ||
'jest-preset-angular/build/serializers/ng-snapshot', | ||
'jest-preset-angular/build/serializers/html-comment', | ||
], | ||
transform: { | ||
'^.+.(ts|mjs|js|html)$': 'jest-preset-angular', | ||
'^.+.(ts|mjs|js|html)$': [ | ||
'jest-preset-angular', | ||
{ | ||
stringifyContentPathRegex: '\\.(html|svg)$', | ||
|
||
tsconfig: '<rootDir>/tsconfig.spec.json', | ||
}, | ||
], | ||
}, | ||
transformIgnorePatterns: ['node_modules/(?!.*.mjs$)'], | ||
preset: '../../../jest.preset.ts', | ||
preset: '../../../jest.preset.js', | ||
}; |
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,28 @@ | ||
{ | ||
"name": "ng-mockito-integration", | ||
"$schema": "../../../node_modules/nx/schemas/project-schema.json", | ||
"projectType": "library", | ||
"sourceRoot": "libs/ng-mockito/integration/src", | ||
"prefix": "qp", | ||
"targets": { | ||
"lint": { | ||
"executor": "@nx/eslint:lint", | ||
"options": { | ||
"lintFilePatterns": ["libs/ng-mockito/integration/src/**/*.ts"] | ||
} | ||
}, | ||
"test": { | ||
"executor": "@nx/jest:jest", | ||
"options": { | ||
"jestConfig": "libs/ng-mockito/integration/jest.config.ts" | ||
}, | ||
"outputs": ["{workspaceRoot}/coverage/libs/ng-mockito/integration"] | ||
} | ||
}, | ||
"generators": { | ||
"@schematics/angular:component": { | ||
"style": "scss" | ||
} | ||
}, | ||
"tags": ["scope:ng-mockito"] | ||
} |
Oops, something went wrong.