1
0

4 Commits

Author SHA1 Message Date
306c046adb update test 2024-01-20 02:49:45 +01:00
2dab64be19 rename job 2024-01-20 02:37:12 +01:00
175deddc9c fix import 2024-01-20 02:36:32 +01:00
ff638ad04f add testing github action 2024-01-20 02:35:06 +01:00
3 changed files with 25 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
name: Publish (main)
name: Publish
on:
release:

21
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: latest
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test

View File

@@ -1,5 +1,5 @@
import { describe, expect, test } from '@jest/globals'
import { Router } from '..'
import { Router } from '../src/index'
describe('Router', () => {
test('use', async () => {