mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-24 11:21:02 +00:00
fix: test
This commit is contained in:
8
rust/__test__/index.spec.ts
Normal file
8
rust/__test__/index.spec.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import test from 'ava'
|
||||
|
||||
import { plus100 } from '../index'
|
||||
|
||||
test('sync function from native code', (t) => {
|
||||
const fixture = 42
|
||||
t.is(plus100(fixture), fixture + 100)
|
||||
})
|
||||
3
rust/__test__/package.json
Normal file
3
rust/__test__/package.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"type": "module"
|
||||
}
|
||||
11
rust/__test__/tsconfig.json
Normal file
11
rust/__test__/tsconfig.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "Bundler",
|
||||
"outDir": "lib",
|
||||
"rootDir": "."
|
||||
},
|
||||
"include": ["*.ts"],
|
||||
"exclude": ["lib"]
|
||||
}
|
||||
Reference in New Issue
Block a user