Skip to content

feat: Implement standalone mocha runner and loader #17

feat: Implement standalone mocha runner and loader

feat: Implement standalone mocha runner and loader #17

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

8 passed, 5 failed and 0 skipped

Tests failed

❌ test-results/unit.json

13 tests were completed in 109ms with 8 passed, 5 failed and 0 skipped.

Test suite Passed Failed Skipped Time
out/test/unit/extract/evaluate-typescript.test.js 3✅ 19ms
out/test/unit/extract/evaluate.test.js 1✅ 5❌ 10ms
out/test/unit/extract/syntax.test.js 4✅ 12ms

✅ 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
	expected [ { name: 'hello', kind: +0, …(5) } ] to deeply equal [ { name: 'hello', kind: +0, …(5) } ]
  ❌ extracts basic suite
	expected [ { name: 'hello', kind: +0, …(5) } ] to deeply equal [ { name: 'hello', kind: +0, …(5) } ]
  ❌ handles errors appropriately
	expected [ { name: 'hello', kind: +0, …(6) } ] to deeply equal [ { name: 'hello', kind: +0, …(6) } ]
  ❌ runs esbuild-style modules
	expected [ { name: 'hello', kind: +0, …(5) } ] to deeply equal [ { name: 'hello', kind: +0, …(5) } ]
  ✅ stubs out requires and placeholds correctly
  ❌ works with skip/only
	expected [ { name: 'hello', kind: +0, …(5) } ] to deeply equal [ { name: 'hello', kind: +0, …(5) } ]

✅ 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

Annotations

Check failure on line 0 in test-results/unit.json

See this annotation in the file changed.

@github-actions github-actions / VS Code Test Results (ubuntu-latest, insiders, desktop)

out/test/unit/extract/evaluate.test.js ► evaluate ► can evaluate and extract a test table

Failed test found in:
  test-results/unit.json
Error:
  expected [ { name: 'hello', kind: +0, …(5) } ] to deeply equal [ { name: 'hello', kind: +0, …(5) } ]
Raw output
AssertionError: expected [ { name: 'hello', kind: +0, …(5) } ] to deeply equal [ { name: 'hello', kind: +0, …(5) } ]
	at Context.<anonymous> (out/test/unit/extract/evaluate.test.js:40:41)

Check failure on line 0 in test-results/unit.json

See this annotation in the file changed.

@github-actions github-actions / VS Code Test Results (ubuntu-latest, insiders, desktop)

out/test/unit/extract/evaluate.test.js ► evaluate ► extracts basic suite

Failed test found in:
  test-results/unit.json
Error:
  expected [ { name: 'hello', kind: +0, …(5) } ] to deeply equal [ { name: 'hello', kind: +0, …(5) } ]
Raw output
AssertionError: expected [ { name: 'hello', kind: +0, …(5) } ] to deeply equal [ { name: 'hello', kind: +0, …(5) } ]
	at Context.<anonymous> (out/test/unit/extract/evaluate.test.js:15:41)

Check failure on line 0 in test-results/unit.json

See this annotation in the file changed.

@github-actions github-actions / VS Code Test Results (ubuntu-latest, insiders, desktop)

out/test/unit/extract/evaluate.test.js ► evaluate ► handles errors appropriately

Failed test found in:
  test-results/unit.json
Error:
  expected [ { name: 'hello', kind: +0, …(6) } ] to deeply equal [ { name: 'hello', kind: +0, …(6) } ]
Raw output
AssertionError: expected [ { name: 'hello', kind: +0, …(6) } ] to deeply equal [ { name: 'hello', kind: +0, …(6) } ]
	at Context.<anonymous> (out/test/unit/extract/evaluate.test.js:83:41)

Check failure on line 0 in test-results/unit.json

See this annotation in the file changed.

@github-actions github-actions / VS Code Test Results (ubuntu-latest, insiders, desktop)

out/test/unit/extract/evaluate.test.js ► evaluate ► runs esbuild-style modules

Failed test found in:
  test-results/unit.json
Error:
  expected [ { name: 'hello', kind: +0, …(5) } ] to deeply equal [ { name: 'hello', kind: +0, …(5) } ]
Raw output
AssertionError: expected [ { name: 'hello', kind: +0, …(5) } ] to deeply equal [ { name: 'hello', kind: +0, …(5) } ]
	at Context.<anonymous> (out/test/unit/extract/evaluate.test.js:138:41)

Check failure on line 0 in test-results/unit.json

See this annotation in the file changed.

@github-actions github-actions / VS Code Test Results (ubuntu-latest, insiders, desktop)

out/test/unit/extract/evaluate.test.js ► evaluate ► works with skip/only

Failed test found in:
  test-results/unit.json
Error:
  expected [ { name: 'hello', kind: +0, …(5) } ] to deeply equal [ { name: 'hello', kind: +0, …(5) } ]
Raw output
AssertionError: expected [ { name: 'hello', kind: +0, …(5) } ] to deeply equal [ { name: 'hello', kind: +0, …(5) } ]
	at Context.<anonymous> (out/test/unit/extract/evaluate.test.js:99:41)