-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Lexus Drumgold <[email protected]>
- Loading branch information
1 parent
06b2a5a
commit 64613b6
Showing
38 changed files
with
1,183 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,4 +89,5 @@ ignore: | |
- '!src/index.ts' | ||
|
||
profiling: | ||
critical_files_paths: [] | ||
critical_files_paths: | ||
- src/stringify-position.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* @file Test Setup - faker | ||
* @module tests/setup/faker | ||
* @see https://github.com/faker-js/faker | ||
*/ | ||
|
||
import { faker } from '@faker-js/faker' | ||
|
||
global.faker = faker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
* @module tests/setup | ||
*/ | ||
|
||
export {} | ||
import './faker' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`functional:stringifyPosition > node > should serialize node (invalid position #1) 1`] = `"1:1-1:1"`; | ||
|
||
exports[`functional:stringifyPosition > node > should serialize node (invalid position #2) 1`] = `"1:1-1:1"`; | ||
|
||
exports[`functional:stringifyPosition > node > should serialize node (invalid position #3) 1`] = `"1:1-1:1"`; | ||
|
||
exports[`functional:stringifyPosition > node > should serialize node (no position) 1`] = `"1:1-1:1"`; | ||
|
||
exports[`functional:stringifyPosition > node > should serialize node (valid) 1`] = `"63:8-63:55"`; | ||
|
||
exports[`functional:stringifyPosition > node > should serialize node (valid, offsets) 1`] = `"114:76-115:1, 2606-2607"`; | ||
|
||
exports[`functional:stringifyPosition > point > should serialize point (column only) 1`] = `"1:3"`; | ||
|
||
exports[`functional:stringifyPosition > point > should serialize point (line only) 1`] = `"13:1"`; | ||
|
||
exports[`functional:stringifyPosition > point > should serialize point (no indices) 1`] = `"1:1"`; | ||
|
||
exports[`functional:stringifyPosition > point > should serialize point (valid) 1`] = `"2:3"`; | ||
|
||
exports[`functional:stringifyPosition > position > should serialize position (invalid points #1) 1`] = `"1:1-1:1"`; | ||
|
||
exports[`functional:stringifyPosition > position > should serialize position (invalid points #2) 1`] = `"1:1-1:1"`; | ||
|
||
exports[`functional:stringifyPosition > position > should serialize position (invalid points #3) 1`] = `"1:1-1:1"`; | ||
|
||
exports[`functional:stringifyPosition > position > should serialize position (no points) 1`] = `"1:1-1:1"`; | ||
|
||
exports[`functional:stringifyPosition > position > should serialize position (valid) 1`] = `"111:6-128:42"`; | ||
|
||
exports[`functional:stringifyPosition > position > should serialize position (valid, offsets) 1`] = `"1:1-4:4, 0-73"`; | ||
|
||
exports[`functional:stringifyPosition > range > should serialize range (no points) 1`] = `"1:1-1:1"`; | ||
|
||
exports[`functional:stringifyPosition > range > should serialize range (valid) 1`] = `"42:6-38:3"`; | ||
|
||
exports[`functional:stringifyPosition > range > should serialize range (valid, offsets) 1`] = `"13:4-13:51, 347-521"`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* @file E2E Tests - api | ||
* @module unist-util-stringify-position/tests/e2e/api | ||
*/ | ||
|
||
import * as testSubject from '../index' | ||
|
||
describe('e2e:unist-util-stringify-position', () => { | ||
it('should expose public api', () => { | ||
expect(testSubject).to.have.keys(['stringifyPosition']) | ||
}) | ||
}) |
Oops, something went wrong.