Skip to content

feat: Implement standalone mocha runner and loader #20

feat: Implement standalone mocha runner and loader

feat: Implement standalone mocha runner and loader #20

GitHub Actions / VS Code Test Results (ubuntu-latest, insiders, desktop) succeeded Mar 31, 2024 in 0s

27 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
test-results/simple.json 11✅ 9s
test-results/typescript.json 3✅ 4s
test-results/unit.json 13✅ 131ms

✅ test-results/simple.json

11 tests were completed in 9s with 11 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
out/test/integration/simple.test.js 11✅ 3s

✅ out/test/integration/simple.test.js

simple
  ✅ cleans up folder if all child files are deleted
  ✅ debugs tests in a file
  ✅ discovers tests
  ✅ handles changes to .mocharc.js
  ✅ handles file and directory excludes
  ✅ handles file change
  ✅ handles file delete
  ✅ runs subsets of tests
  ✅ runs tests
  ✅ runs tests in a file
  ✅ runs tests in directory

✅ test-results/typescript.json

3 tests were completed in 4s with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
out/test/integration/typescript.test.js 3✅ 2s

✅ out/test/integration/typescript.test.js

typescript
  ✅ debugs tests
  ✅ discovers tests
  ✅ runs tests

✅ test-results/unit.json

13 tests were completed in 131ms with 13 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
out/test/unit/extract/evaluate-typescript.test.js 3✅ 25ms
out/test/unit/extract/evaluate.test.js 6✅ 12ms
out/test/unit/extract/syntax.test.js 4✅ 13ms

✅ out/test/unit/extract/evaluate-typescript.test.js

evaluate typescript
  ✅ extracts basic suite
  ✅ extracts basic suite ts syntax
  ✅ extracts multiple suite

✅ out/test/unit/extract/evaluate.test.js

evaluate
  ✅ can evaluate and extract a test table
  ✅ extracts basic suite
  ✅ handles errors appropriately
  ✅ runs esbuild-style modules
  ✅ stubs out requires and placeholds correctly
  ✅ works with skip/only

✅ out/test/unit/extract/syntax.test.js

syntax
  ✅ can detect suite but not dynamic tests
  ✅ extracts basic suite
  ✅ stubs out requires and placeholds correctly
  ✅ works with skip/only