Skip to content

Commit

Permalink
feat: add js wasm tests and js error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
DimiDumo committed Oct 22, 2024
1 parent 5b49b7c commit c9bcbbb
Show file tree
Hide file tree
Showing 11 changed files with 1,249 additions and 6 deletions.
29 changes: 29 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
export default {
root: true,
env: {
es2021: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'prettier'],
rules: {
indent: ['error', 2],
quotes: ['error', 'double'],
semi: ['error', 'always'],
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
},
};
8 changes: 8 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@ jobs:

- name: Test Rust binary
run: cargo test --release

- name: Install bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: JS WASM Tests
run: bun test
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5",
"printWidth": 100
}
Binary file added bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log("Hello via Bun!");
Loading

0 comments on commit c9bcbbb

Please sign in to comment.