|
10 | 10 | "dev": "gulp serve", |
11 | 11 | "build": "gulp build --production && npm run afterbuild", |
12 | 12 | "afterbuild": "cd build && npm install --production", |
13 | | - "test": "gulp test", |
14 | | - "test:server": "gulp test:server", |
15 | | - "test:client": "gulp test:client", |
16 | | - "start": "(type ./build/index.js && node ./build/index.js) || node ./index.js ", |
17 | | - "vulnerabilities": "nsp check" |
| 13 | + "test": "npx jest --runInBand test/server/**.spec.js && npx jest test/client/**.spec.js", |
| 14 | + "start": "node ./index.js" |
18 | 15 | }, |
19 | 16 | "dependencies": { |
20 | 17 | "compression": "^1.0.3", |
|
24 | 21 | "express": "^4.16.2", |
25 | 22 | "express-history-api-fallback": "^2.2.1", |
26 | 23 | "loopback": "^3.16.2", |
27 | | - "loopback-boot": "^2.27.0", |
| 24 | + "loopback-boot": "github:klarkc/loopback-boot#master", |
28 | 25 | "loopback-component-explorer": "^4.0.0", |
29 | 26 | "serve-favicon": "^2.0.1", |
30 | 27 | "strong-error-handler": "^2.0.0", |
|
47 | 44 | }, |
48 | 45 | "devDependencies": { |
49 | 46 | "aliasify": "^2.1.0", |
50 | | - "babel-core": "^6.25.0", |
| 47 | + "babel-core": "^6.26.3", |
51 | 48 | "babel-eslint": "^8.2.2", |
| 49 | + "babel-jest": "^23.0.1", |
| 50 | + "regenerator-runtime": "^0.11.1", |
| 51 | + "supertest": "^3.1.0", |
52 | 52 | "babel-plugin-transform-runtime": "^6.23.0", |
53 | 53 | "babel-preset-env": "^1.6.1", |
54 | 54 | "babel-preset-stage-2": "^6.24.1", |
55 | 55 | "babelify": "^7.3.0", |
56 | 56 | "browserify": "^14.4.0", |
57 | 57 | "browserify-global-shim": "^1.0.3", |
58 | | - "chai": "^4.1.0", |
59 | | - "chai-http": "^3.0.0", |
60 | 58 | "css-modulesify": "^0.28.0", |
61 | | - "babel-eslint": "^8.2.2", |
62 | 59 | "eslint": "^4.15.0", |
63 | 60 | "eslint-config-airbnb-base": "^11.3.0", |
64 | 61 | "eslint-plugin-import": "^2.9.0", |
|
68 | 65 | "gulp-autoprefixer": "^4.0.0", |
69 | 66 | "gulp-babel": "^6.1.2", |
70 | 67 | "gulp-connect": "^5.0.0", |
71 | | - "gulp-mocha": "^4.3.1", |
72 | 68 | "gulp-sourcemaps": "^2.6.0", |
73 | | - "karma": "^1.7.1", |
74 | | - "karma-browserify": "^5.1.1", |
75 | | - "karma-chai": "^0.1.0", |
76 | | - "karma-mocha": "^1.3.0", |
77 | | - "karma-chrome-launcher": "^2.2.0", |
78 | | - "loopback-chai": "^2.3.0", |
79 | | - "mocha": "^3.4.2", |
80 | | - "sinon": "^2.3.8", |
| 69 | + "jest": "^22.4.4", |
| 70 | + "jest-plugins": "^2.9.0", |
| 71 | + "jest-preset-loopback": "^1.0.0", |
| 72 | + "loopback-jest": "^1.3.0", |
| 73 | + "supertest": "^3.1.0", |
81 | 74 | "tfilter": "^1.0.1", |
82 | 75 | "through2": "^2.0.3", |
83 | 76 | "tmp": "0.0.33", |
84 | 77 | "vinyl-buffer": "^1.0.0", |
85 | 78 | "vinyl-source-stream": "^1.1.0", |
| 79 | + "vue-jest": "^2.6.0", |
| 80 | + "vue-test-utils": "^1.0.0-beta.11", |
86 | 81 | "vueify": "^9.4.1", |
87 | 82 | "yargs": "^10.0.3", |
88 | 83 | "babel-plugin-root-import": "^5.1.0", |
89 | 84 | "connect-history-api-fallback": "^1.5.0", |
90 | 85 | "node-sass": "^4.6.0", |
91 | | - "nsp": "^2.1.0", |
92 | 86 | "gulp-util": "^3.0.8", |
93 | 87 | "babel-register": "^6.26.0" |
94 | 88 | }, |
95 | 89 | "repository": { |
96 | 90 | "type": "", |
97 | 91 | "url": "" |
98 | 92 | }, |
| 93 | + "jest": { |
| 94 | + "projects": [ |
| 95 | + "<rootDir>/test/server", |
| 96 | + "<rootDir>/test/client" |
| 97 | + ] |
| 98 | + }, |
99 | 99 | "license": "UNLICENSED", |
100 | 100 | "description": "{{ description }}"{{#extended}}, |
101 | 101 | "extended": true |
|
0 commit comments