Remove python, replace with ts

This commit is contained in:
simojenki
2021-01-26 16:56:00 +11:00
parent 2fdaaf471f
commit 695b92c912
18 changed files with 2125 additions and 21 deletions

View File

@@ -1,6 +0,0 @@
import os
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
import bonob

View File

@@ -0,0 +1,7 @@
import { expect } from "chai";
describe("something", function () {
it("fails", function () {
expect(true).equal(true);
});
});

View File

@@ -1,8 +0,0 @@
from context import bonob
def f(x):
return x + 1
def test_answer():
assert f(4) == 5

21
tests/tsconfig.json Normal file
View File

@@ -0,0 +1,21 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"baseUrl": "./",
"module": "commonjs",
"experimentalDecorators": true,
"strictPropertyInitialization": false,
"isolatedModules": false,
"strict": false,
"noImplicitAny": false,
"typeRoots" : [
"../node_modules/@types"
]
},
"exclude": [
"../node_modules"
],
"include": [
"./**/*.ts"
]
}