Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
af988dd
refactor: Rebrand project for Mocha
Danielku15 Mar 24, 2024
0733d11
feat: Implement standalone mocha runner and loader
Danielku15 Mar 24, 2024
93fd534
chore: Extend tests
Danielku15 Mar 24, 2024
738e0b6
Merge branch 'main' into feature/mocha-standalone
Danielku15 Mar 31, 2024
088cfdc
Merge branch 'main' into feature/mocha-standalone
Danielku15 Mar 31, 2024
619f562
build: add test reports
Danielku15 Mar 31, 2024
1e2d0b4
build: Fix vscode DTS
Danielku15 Mar 31, 2024
372eb17
build: don't fail fast
Danielku15 Mar 31, 2024
6eeefd1
build: increase timeout of tests
Danielku15 Mar 31, 2024
105289c
build: Add test config printing
Danielku15 Mar 31, 2024
33f0174
build: explicit compile call
Danielku15 Mar 31, 2024
5ecc515
build: test output to check for files
Danielku15 Mar 31, 2024
c32cb75
build: fix improt
Danielku15 Mar 31, 2024
39d8693
build: Remove artifact name
Danielku15 Mar 31, 2024
0d7ac25
build: Permissions and matrix handling
Danielku15 Mar 31, 2024
a36d8e2
build: Align formatting of test results
Danielku15 Mar 31, 2024
5390451
chore: Cleanup and todo resolving
Danielku15 Mar 31, 2024
8d265a1
chore: some more logs
Danielku15 Mar 31, 2024
c3d6e1d
fix: Line numbers on typescript
Danielku15 Mar 31, 2024
8753898
chore: Use mocharc as root note text for clarity
Danielku15 Mar 31, 2024
f4cb19f
fix: zero-based columns
Danielku15 Mar 31, 2024
0aa66d7
fix: handle inconsistencies in source-map lib
Danielku15 Mar 31, 2024
9c25be6
fix: clear out test inconsistencies
Danielku15 Mar 31, 2024
c063976
fix: handle source mapped javascript
Danielku15 Mar 31, 2024
602308d
feat: add support for ignore patterns
Danielku15 Mar 31, 2024
93d84ec
Remove OpenJS foundation for now.
Danielku15 Apr 2, 2024
3f1ee6a
chore: Add note about extension to readme
Danielku15 Apr 2, 2024
5828c93
chore: add link to project.
Danielku15 Apr 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: zero-based columns
  • Loading branch information
Danielku15 committed Mar 31, 2024
commit f4cb19f67111000175c1259b386ee85c148ee3b1
6 changes: 4 additions & 2 deletions src/extract/evaluate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,17 @@ export async function extractWithEvaluation(

if (endLine === startLine) {
endColumn = Number.MAX_SAFE_INTEGER; // assume it takes the entire line of a single-line test case
} else {
endColumn -= 1;
}

const node: IParsedNode = {
name,
kind,
startLine: startLine - 1,
startColumn,
startColumn: startColumn - 1,
endLine: endLine - 1,
endColumn,
endColumn: endColumn,
children: [],
};
if (directive) {
Expand Down
8 changes: 4 additions & 4 deletions src/test/unit/extract/evaluate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('evaluate', () => {
kind: NodeKind.Suite,
startLine: 0,
startColumn: 0,
endColumn: 1,
endColumn: 0,
endLine: 2,
children: [
{
Expand Down Expand Up @@ -63,7 +63,7 @@ describe('evaluate', () => {
kind: NodeKind.Suite,
startLine: 0,
startColumn: 0,
endColumn: 1,
endColumn: 0,
endLine: 4,
children: [
{
Expand Down Expand Up @@ -115,7 +115,7 @@ describe('evaluate', () => {
startLine: 0,
startColumn: 0,
endLine: 2,
endColumn: 1,
endColumn: 0,
children: [],
error: 'whoops',
},
Expand All @@ -140,7 +140,7 @@ describe('evaluate', () => {
startLine: 0,
startColumn: 0,
endLine: 3,
endColumn: 1,
endColumn: 0,
children: [
{
name: 'a',
Expand Down