Skip to content

Commit b5c553c

Browse files
committed
Merge branch 'master' into unit-testing
2 parents 4b9b124 + e144c66 commit b5c553c

File tree

5 files changed

+774
-719
lines changed

5 files changed

+774
-719
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"description": "",
55
"main": "dist/main.js",
66
"jest": {
7-
"testEnvironment": "node",
87
"moduleFileExtensions": [
98
"js",
109
"jsx"
@@ -72,7 +71,7 @@
7271
"file-loader": "^4.2.0",
7372
"idempotent-babel-polyfill": "6.26.0-1",
7473
"identity-obj-proxy": "^3.0.0",
75-
"jest": "^15.0.0",
74+
"jest": "^23.6.0",
7675
"jquery": "1.12.1",
7776
"lodash": "^4.17.5",
7877
"mem": ">=4.0.0",

test/unit/oceans/models/train.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* @jest-environment node
3+
*/
4+
15
const {initFishData} = require('@ml/utils/fishData');
26
import {setState, getState, resetState} from '@ml/oceans/state';
37
import {ClassType, Modes} from '@ml/oceans/constants';

test/unit/utils/SimpleTrainer.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* @jest-environment node
3+
*/
4+
15
import SimpleTrainer from '@ml/utils/SimpleTrainer';
26
import * as tf from '@tensorflow/tfjs';
37

test/unit/utils/generateOcean.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* @jest-environment node
3+
*/
4+
15
import {initFishData} from '@ml/utils/fishData';
26
import {generateOcean, filterOcean} from '@ml/utils/generateOcean';
37
import SimpleTrainer from '@ml/utils/SimpleTrainer';

0 commit comments

Comments
 (0)