Start running backend tests properly
This commit is contained in:
parent
02746fe783
commit
4f3be24eda
|
@ -20,6 +20,9 @@ check: depends
|
|||
clean:
|
||||
rm -rf node_modules
|
||||
|
||||
.PHONY: all depends build clean check
|
||||
watch:
|
||||
jest --watchAll
|
||||
|
||||
.PHONY: all depends build clean check watch
|
||||
|
||||
# vim: set et
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -18,7 +18,30 @@
|
|||
"homepage": "https://github.com/rtyler/howyoucanhelp.us#readme",
|
||||
"devDependencies": {
|
||||
"@types/feathersjs__feathers": "^3.0.4",
|
||||
"@types/jest": "^23.3.1",
|
||||
"jest": "^23.5.0",
|
||||
"ts-jest": "^23.1.3",
|
||||
"typescript": "^3.0.1",
|
||||
"winston": "^3.0.0"
|
||||
},
|
||||
"jest": {
|
||||
"transform": {
|
||||
"^.+\\.tsx?$": "ts-jest"
|
||||
},
|
||||
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
|
||||
"moduleFileExtensions": [
|
||||
"ts",
|
||||
"tsx",
|
||||
"js",
|
||||
"jsx",
|
||||
"json",
|
||||
"node"
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"@feathersjs/express": "^1.2.3",
|
||||
"@feathersjs/feathers": "^3.1.7",
|
||||
"feathers-sequelize": "^3.1.2",
|
||||
"feathers-sync": "^1.0.3"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
import 'winston';
|
||||
import feathers from '@feathersjs/feathers';
|
||||
|
||||
const app : any = feathers();
|
||||
export default app;
|
|
@ -0,0 +1,8 @@
|
|||
import App from '../src/app';
|
||||
import feathers from '@feathersjs/feathers';
|
||||
|
||||
describe('The App', () => {
|
||||
it('should export an app', () => {
|
||||
expect(App).toBeTruthy();
|
||||
});
|
||||
});
|
|
@ -5,7 +5,7 @@
|
|||
"skipLibCheck": true,
|
||||
"noImplicitAny": true,
|
||||
"module": "es6",
|
||||
"target": "es6",
|
||||
"target": "es2018",
|
||||
"allowJs": true,
|
||||
"sourceMap": true
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue