mirror of https://gitee.com/cf-fz/WebCAD.git
# Conflicts: # __test__/Geometry/orbit.test.ts # src/DatabaseServices/EntityData.ts # wallaby.conf.jspull/7/head
commit
8818b5e4d2
@ -0,0 +1,33 @@
|
|||||||
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||||
|
|
||||||
|
exports[`测试求向量 1`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 0,
|
||||||
|
"y": -1,
|
||||||
|
"z": 0,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`测试求向量 2`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 0,
|
||||||
|
"y": -1,
|
||||||
|
"z": 0,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`测试求向量 3`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 0,
|
||||||
|
"y": 1,
|
||||||
|
"z": 0,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`测试求向量 4`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 0.7071067811865475,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0.7071067811865475,
|
||||||
|
}
|
||||||
|
`;
|
@ -1,18 +1,28 @@
|
|||||||
module.exports = function () {
|
module.exports = function (wallaby) {
|
||||||
|
return {
|
||||||
return {
|
files: [
|
||||||
files: [
|
|
||||||
'tsconfig.json', // <--
|
'tsconfig.json', // <--
|
||||||
'src/**/*.ts',
|
'src/**/*.ts*',
|
||||||
'src/**/*.js'],
|
'src/**/*.tsx*',
|
||||||
|
'src/**/*.js*',
|
||||||
tests: ['__test__/**/*.ts'],
|
],
|
||||||
|
|
||||||
|
tests: ['__test__/**/*.test.ts*'],
|
||||||
|
|
||||||
|
compilers: {
|
||||||
|
'**/*.ts?(x)': wallaby.compilers.typeScript({
|
||||||
|
module: 'commonjs',
|
||||||
|
jsx: 'React'
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
env: {
|
env: {
|
||||||
type: 'node',
|
type: 'node',
|
||||||
runner: 'node'
|
runner: 'node'
|
||||||
},
|
},
|
||||||
|
|
||||||
testFramework: 'jest',
|
testFramework: 'jest',
|
||||||
|
|
||||||
|
debug: true
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
Loading…
Reference in new issue