This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"extends": "gts/tslint.json" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root = true | |
[*] | |
end_of_line = lf | |
insert_final_newline = true | |
charset = utf-8 | |
[*.{ts,js,json}] | |
indent_style = tab | |
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Logs | |
logs | |
*.log | |
npm-debug.log* | |
yarn-debug.log* | |
yarn-error.log* | |
# Runtime data | |
pids | |
*.pid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"extends": "gts/tsconfig-google.json", | |
"compilerOptions": { | |
"outDir": "build", | |
"lib": [ | |
"es2017", | |
"dom", | |
], | |
"moduleResolution": "node", | |
"experimentalDecorators": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mocha.opts | |
--require test/ts-node-register.js | |
test/setup.spec.js | |
--recursive test/**/*.spec.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"check-coverage": true, | |
"lines": 95, | |
"branches": 95, | |
"functions": 95, | |
"exclude": [ | |
"test", | |
"build", | |
"coverage", | |
"dist", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var del = require('del'); | |
gulp.task('default', function () { | |
return del([ | |
'build/' | |
]); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'reflect-metadata'; | |
import { use } from 'chai'; | |
import { restore } from 'sinon'; | |
import sinonChai = require('sinon-chai'); | |
use(sinonChai); | |
afterEach(() => { | |
restore(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { stub, SinonStub } from 'sinon'; | |
// First describe, class name | |
describe('MyClass', () => { | |
let service: MyService; | |
let target: MyClass; | |
// Class describe beforeEach, class bootstrap | |
beforeEach(() => { | |
service = {} as any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { stub, SinonStub } from 'sinon'; | |
import * as server from '../src/server'; | |
// First describe, class name | |
describe('index.ts', () => { | |
let start: SinonStub; | |
// Before each to bootstrap stubs, where all the methods that could be called are stubbeds | |
beforeEach(() => { | |
start = sinon.stub(server, 'start'); |
OlderNewer