添加wallaby.conf

pull/7/head
cx 7 years ago
parent 52fc8e18ae
commit a28451e594

@ -1,6 +1,7 @@
import * as mst from 'mobx-state-tree';
import { EntityData } from '../../src/DatabaseServices/EntityData';
import * as THREE from 'three';
test("Entity", () =>
{
let d = EntityData.create({ size: [0, 1, 2] })
@ -30,4 +31,4 @@ test("not late", () =>
expect(d.getSize().z).toBe(1000);
console.log(typeof d.getSize());
})
})

@ -1,4 +1,5 @@
import * as THREE from "three";
/**
* ,
* x90,.

@ -0,0 +1,28 @@
module.exports = function (wallaby) {
return {
files: [
'tsconfig.json', // <--
'src/**/*.ts*',
'src/**/*.tsx*',
'src/**/*.js*',
],
tests: ['__test__/**/*.test.ts*'],
compilers: {
'**/*.ts?(x)': wallaby.compilers.typeScript({
module: 'commonjs',
jsx: 'React'
})
},
env: {
type: 'node',
runner: 'node'
},
testFramework: 'jest',
debug: true
};
};
Loading…
Cancel
Save