Merge pull request #13 from justadudewhohacks/unit-tests
some unit and end to end tests
Showing
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This diff is collapsed.
Click to expand it.
karma.conf.js
0 → 100644
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
| ... | ... | @@ -7,7 +7,8 @@ |
| "scripts": { | ||
| "rollup-min": "rollup -c rollup.config.js --environment minify:true", | ||
| "rollup": "rollup -c rollup.config.js", | ||
| "build": "npm run rollup && npm run rollup-min && tsc" | ||
| "build": "npm run rollup && npm run rollup-min && tsc", | ||
| "test": "karma start" | ||
| }, | ||
| "keywords": [ | ||
| "face", | ||
| ... | ... | @@ -22,7 +23,15 @@ |
| "@tensorflow/tfjs-core": "^0.11.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@types/axios": "^0.14.0", | ||
| "@types/jasmine": "^2.8.8", | ||
| "@types/node": "^10.1.1", | ||
| "axios": "^0.18.0", | ||
| "jasmine-core": "^3.1.0", | ||
| "karma": "^2.0.3", | ||
| "karma-chrome-launcher": "^2.2.0", | ||
| "karma-jasmine": "^1.1.2", | ||
| "karma-typescript": "^3.0.12", | ||
| "rollup": "^0.59.1", | ||
| "rollup-plugin-commonjs": "^9.1.3", | ||
| "rollup-plugin-node-resolve": "^3.3.0", | ||
| ... | ... |
test/data/faceDescriptor.json
0 → 100644
test/data/faceLandmarkPositions.json
0 → 100644
test/e2e/faceDetectionNet.test.ts
0 → 100644
test/e2e/faceLandmarkNet.test.ts
0 → 100644
test/e2e/faceRecognitionNet.test.ts
0 → 100644
test/images/face.png
0 → 100644
15.6 KB
test/images/faces.jpg
0 → 100644
117 KB
test/padToSquare.test.ts
0 → 100644
test/utils.ts
0 → 100644
tsconfig.test.json
0 → 100644