Skip to content

Commit

Permalink
Merge pull request #12 from agrostar/vsc#20_preliminary-tests
Browse files Browse the repository at this point in the history
introduce automated (integration) tests for the node module
  • Loading branch information
vasansr authored Jun 29, 2024
2 parents 42a8004 + 1e30024 commit 069fdd7
Show file tree
Hide file tree
Showing 15 changed files with 805 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ jobs:
with:
node-version: "20"
- name: prettier check
run: npx prettier -c ./src --config ./src/.prettierrc
run: npx prettier -c ./src ./tests --config ./.prettierrc
File renamed without changes.
2 changes: 2 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
silent: false,
testTimeout: 120*1000,
};
18 changes: 9 additions & 9 deletions package-lock.json

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

1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export {
GotRequest,
TestResult,
SpecResult,
Tests,
} from "./models";

export { getRequestPositions, getAllRequestSpecs, getRequestSpec } from "./parseBundle";
Expand Down
9 changes: 9 additions & 0 deletions tests/bundles/auto-test.zzv
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# to ensure that the module is reading from varfiles, we put some essential
# variables in the varfiles

default:
getUrl: /get
fooVar: bar
random:
getUrl: /random
fooVar: random
Loading

0 comments on commit 069fdd7

Please sign in to comment.