DefinitelyTyped/types/karma-jasmine/karma-jasmine-tests.ts
Piotr Błażejewicz (Peter Blazejewicz) c72d2cfdd0
feat(karma-jasmine): update to version 3.1 (#41989)
- version bump
- rewrite definition to extend karma configuration with Jasmine specifc
configuration properties support
- tests updated
- type definition configuration changes to match latest recommended
setup for linting and TS details

Thanks!
2020-02-06 10:13:49 -08:00

31 lines
666 B
TypeScript

import karma = require('karma');
fdescribe('A suite', () => {
fit('contains spec with an expectation', () => {
expect(true).toBe(true);
});
});
// https://github.com/karma-runner/karma-jasmine#configuration
const testOne = (config: karma.Config) => {
config.set({
frameworks: ['jasmine'],
files: ['*.js'],
});
};
const testTwo = (config: karma.Config) => {
config.set({
client: {
jasmine: {
random: true,
seed: 4321,
oneFailurePerSpec: true,
failFast: true,
timeoutInterval: 1000,
},
},
});
};