Skip to content

Commit

Permalink
modifying to not require --testMatch for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
turbidwater committed Dec 3, 2024
1 parent 8385430 commit af79e7e
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 102 deletions.
8 changes: 7 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,15 @@ If you only want to run E2E tests, in the command line run:
npm run test-e2e
```

NOTE: on Windows, the `--testMatch` param that is used to isolate tests down to a directory will not work. Instead run all tests:

```sh
npm run test
```

### Building docs

The SDK documentation is written with [JSDcos](https://jsdoc.app/). To build the HTML documentation, run:
The SDK documentation is written with [JSDocs](https://jsdoc.app/). To build the HTML documentation, run:

```sh
npx lerna run build-docs
Expand Down
141 changes: 42 additions & 99 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 packages/millicast-sdk/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export default {
displayName: 'millicast-sdk',
preset: '../../jest.preset.js',
testEnvironment: 'jsdom',
testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|steps).[jt]s?(x)'],
clearMocks: true,
transform: {
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
Expand Down
6 changes: 4 additions & 2 deletions packages/millicast-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"test-unit": "npm run build && jest --testMatch '**/unit/*.steps.js'",
"test-unit-coverage": "npm run build && jest --testMatch '**/unit/*.steps.js' --coverage",
"test-e2e": "npm run build && jest --testMatch '**/e2e/*.steps.js'",
"test-all": "npm run build && jest --testMatch '**/*.steps.js'",
"test-all": "npm run build && jest",
"test": "npm run test-all"
},
"babel": {
Expand All @@ -49,5 +49,7 @@
"type": "git",
"url": "git+https://github.com/millicast/millicast-sdk.git"
},
"devDependencies": {}
"dependencies": {
"playwright": "^1.49.0"
}
}

0 comments on commit af79e7e

Please sign in to comment.