Skip to content

Commit 33ed362

Browse files
Merge pull request #47 from StreetSupport/feature/3017-create-location-specific-content-management-system
3017 - Add tests job to pipeline
2 parents e351063 + 7a1304e commit 33ed362

File tree

5 files changed

+5741
-2468
lines changed

5 files changed

+5741
-2468
lines changed

.github/workflows/azure-deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ jobs:
3737
npm install -g @sentry/cli
3838
sentry-cli --auth-token $SENTRY_AUTH_TOKEN info
3939
40-
- name: npm install, build, and test
40+
- name: npm install, lint, build, and test
4141
run: |
4242
npm install
43+
npm run lint
4344
npm run build --if-present
4445
npm run test --if-present
4546

jest.config.cjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/** @type {import('jest').Config} */
2+
module.exports = {
3+
testEnvironment: 'node',
4+
roots: ['<rootDir>/tests'],
5+
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'],
6+
};

0 commit comments

Comments
 (0)