Skip to content

Commit

Permalink
Merge pull request #54 from AppQuality/develop
Browse files Browse the repository at this point in the history
PR - Release 24-05-2022
  • Loading branch information
sinatragianpaolo authored May 24, 2022
2 parents 6023d19 + 0022f46 commit f5a53ef
Show file tree
Hide file tree
Showing 92 changed files with 14,325 additions and 20,022 deletions.
22 changes: 0 additions & 22 deletions .babelrc.js

This file was deleted.

9 changes: 5 additions & 4 deletions .github/workflows/generate-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: "Install Node"
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 14
- name: Install dependencies
run: |
npm install -g npm-run-all
npm install
npm ci
- name: "Generate Coverage"
run: |
npm run build
npm run coverage
- name: Extract branch name
shell: bash
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: "Install Node"
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 14
- name: Install dependencies
run: |
npm install -g npm-run-all
Expand Down
22 changes: 22 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// jest.config.js
const { pathsToModuleNameMapper } = require("ts-jest");

const { compilerOptions } = require("./tsconfig.json");

module.exports = {
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, {
prefix: "<rootDir>/",
jsonwebtoken: "<rootDir>/src/__mocks__/jsonwebtoken",
"@appquality/wp-auth": "<rootDir>/src/__mocks__/@appquality-wp-auth",
}),
testMatch: ["**/?(*.)+(spec|test).[jt]s?(x)"],
setupFilesAfterEnv: ["<rootDir>/src/__mocks__/globalSetup.ts"],
preset: "ts-jest",
testEnvironment: "node",
testTimeout: 15000,
globals: {
"ts-jest": {
isolatedModules: true,
},
},
};
Loading

0 comments on commit f5a53ef

Please sign in to comment.