-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from rodneylab/test__add_node_tests
test: ☑️ add Node tests
- Loading branch information
Showing
14 changed files
with
911 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Node | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
branches: | ||
- main | ||
permissions: read-all | ||
jobs: | ||
test: | ||
name: Vite Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1 | ||
with: | ||
egress-policy: audit | ||
disable-telemetry: true | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 | ||
with: | ||
version: 8 | ||
- name: Install Node dependencies | ||
run: pnpm install | ||
- name: Check Format | ||
run: pnpm run check:formatting | ||
- uses: dtolnay/rust-toolchain@4f647fc679bcd3b11499ccb42104547c83dabe96 # stable | ||
- name: Run tests | ||
run: cargo install wasm-pack | ||
- name: Build WASM | ||
run: pnpm build | ||
- name: Run unit tests | ||
run: pnpm test |
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,3 +1,4 @@ | ||
/node_modules | ||
/target | ||
.DS_Store | ||
rusty-tags.vi |
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,5 @@ | ||
pkg/** | ||
node_modules/** | ||
pnpm-lock.yaml | ||
lib/* | ||
mod.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/** @type {import("prettier").Config} */ | ||
export default { | ||
}; |
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 |
---|---|---|
|
@@ -4,10 +4,19 @@ | |
"license": "BSD-3-Clause", | ||
"exports": "./mod.ts", | ||
"fmt": { | ||
"exclude": [".github/"] | ||
"exclude": [ | ||
".github/", | ||
".prettierrc.mjs", | ||
"pnpm-lock.yaml", | ||
"node_modules/", | ||
"test/" | ||
] | ||
}, | ||
"test": { | ||
"exclude": ["test/"] | ||
}, | ||
"tasks": { | ||
"check": "deno fmt --check && deno lint && deno check **/*.ts", | ||
"check": "deno fmt --check && deno lint && deno check mod.ts mod_test.ts", | ||
"test": "deno test -A", | ||
"wasmbuild:deno": "deno run -A jsr:@deno/[email protected] --project=parsedown", | ||
"wasmbuild:node": "wasm-pack build --target nodejs --scope rodneylab", | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Binary file not shown.
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,28 @@ | ||
{ | ||
"name": "root", | ||
"collaborators": [ | ||
"Rodney Johnson <[email protected]>" | ||
], | ||
"description": "Markdown processing", | ||
"version": "1.4.3", | ||
"license": "BSD-3-Clause", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/rodneylab/parsedown" | ||
}, | ||
"keywords": [], | ||
"scripts": { | ||
"build": "wasm-pack build --target nodejs --scope rodneylab", | ||
"format": "prettier --write './**/*.ts'", | ||
"check:formatting": "prettier --check './**/*.ts'", | ||
"test": "vitest run", | ||
"test:watch": "vitest" | ||
}, | ||
"devDependencies": { | ||
"@rodneylab/parsedown": "link:pkg", | ||
"husky": "^9.1.7", | ||
"prettier": "^3.3.3", | ||
"vitest": "^2.1.5" | ||
}, | ||
"type": "module" | ||
} |
Oops, something went wrong.