Skip to content

Commit 800b668

Browse files
tests.
1 parent 645c070 commit 800b668

File tree

10 files changed

+5078
-633
lines changed

10 files changed

+5078
-633
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ include scripts/init.mk
77

88
# Example CI/CD targets are: dependencies, build, publish, deploy, clean, etc.
99

10-
quick-start: config clean build serve-docs # Quick start target to setup, build and serve docs @Pipeline
10+
quick-start: config clean test build serve-docs # Quick start target to setup, build and serve docs @Pipeline
1111

1212
dependencies: # Install dependencies needed to build and test the project @Pipeline
1313
# TODO: Implement installation of your project dependencies

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
"lambdas/ttl-create-lambda",
5555
"lambdas/ttl-poll-lambda",
5656
"utils/utils",
57-
"src/cloudevents",
5857
"tests/playwright"
5958
]
6059
}

scripts/tests/unit.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ make -C ./src/eventcatalogasyncapiimporter install-dev
3535
make -C ./src/eventcatalogasyncapiimporter coverage # Run with coverage to generate coverage.xml for SonarCloud
3636

3737
# TypeScript/JavaScript projects (npm workspace)
38-
# Note: src/cloudevents is included in workspaces, so it will be tested here
38+
3939
npm ci
4040
npm run test:unit --workspaces
4141

42+
# Note: needs node 24 so out of workspace
43+
cd src/cloudevents && npm ci && npm run test:unit && cd -
4244
# merge coverage reports
4345
mkdir -p .reports
4446
TMPDIR="./.reports" ./node_modules/.bin/lcov-result-merger "**/.reports/unit/coverage/lcov.info" ".reports/lcov.info" --ignore "node_modules" --prepend-source-files --prepend-path-fix "../../.."

src/cloudevents/jest.config.cjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ module.exports = {
1717
target: 'ES2020',
1818
moduleResolution: 'node',
1919
noEmit: true
20+
},
21+
diagnostics: {
22+
ignoreCodes: [1343] // Ignore TS1343: import.meta errors
2023
}
2124
}]
2225
},

0 commit comments

Comments
 (0)