Start running backend tests properly

This commit is contained in:
R. Tyler Croy 2018-08-11 11:13:16 -07:00
parent 02746fe783
commit 4f3be24eda
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
6 changed files with 5790 additions and 8 deletions

View File

@ -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

5755
backend/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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"
}
}

5
backend/src/app.ts Normal file
View File

@ -0,0 +1,5 @@
import 'winston';
import feathers from '@feathersjs/feathers';
const app : any = feathers();
export default app;

8
backend/test/app.test.ts Normal file
View File

@ -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();
});
});

View File

@ -5,7 +5,7 @@
"skipLibCheck": true,
"noImplicitAny": true,
"module": "es6",
"target": "es6",
"target": "es2018",
"allowJs": true,
"sourceMap": true
},