-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: update version to 0.7.2 * fix: remove type field from package json (#99) * see: #98 --------- Signed-off-by: Casey Occhialini <1508707+littlespex@users.noreply.github.com>
- Loading branch information
1 parent
f7672d8
commit 2fbc22d
Showing
13 changed files
with
415 additions
and
324 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
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
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import { promises as fs } from 'node:fs'; | ||
|
||
// read json test suite | ||
export async function read(name: string) { | ||
const json = await import(`../../../../structured-field-tests/${name}.json`, { assert: { type: 'json' } }); | ||
return json.default; | ||
const json = await fs.readFile(`../structured-field-tests/${name}.json`, 'utf8'); | ||
return JSON.parse(json); | ||
} |
Oops, something went wrong.