Commit 3f9b76e
committed
ci(test-optimization): run datadog-plugin-jest unit spec
`packages/datadog-plugin-jest/test/util.spec.js` is matched by
`test:plugins`' glob but no workflow set `PLUGINS=jest` for
`test:plugins:ci`; the existing `integration-jest` matrix runs
`integration-tests/jest/*.spec.js` only, which does not cover the
plugin package's own unit tests. The new joint check flagged it as
never reached.
Add a single `jest:` job invoking the `plugins/test` composite action.
`util.spec.js` is a pure unit test on `getFormattedJestTestParameters`
and `getJestSuitesToRun`, so no service containers or matrix axes are
needed beyond what `plugins/test` already covers (oldest-maintenance
and latest Node).
Restore the three fixture files (`test-to-run.js`, `test-to-skip.js`,
`test-unskippable.js`) under `packages/datadog-plugin-jest/test/fixtures/`
that `getJestSuitesToRun` reads via `isMarkedAsUnskippable`. They were
deleted alongside the other jest plugin specs when those moved to
integration tests, but `util.spec.js` was kept and silently broke
because no CI invocation reached it.1 parent d411315 commit 3f9b76e
5 files changed
Lines changed: 49 additions & 0 deletions
File tree
- .github/workflows
- packages/datadog-plugin-jest/test/fixtures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
209 | 222 | | |
210 | 223 | | |
211 | 224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
802 | 802 | | |
803 | 803 | | |
804 | 804 | | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
805 | 814 | | |
806 | 815 | | |
807 | 816 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments