The JavaScript OOP style tests!
// Use one of the mocha/jest/jasmine test runners:
import { suite, test } from "@testdeck/mocha";
import { suite, test } from "@testdeck/jest";
import { suite, test } from "@testdeck/jasmine";
import { expect } from 'chai';
// And turn your tests from functional:
describe("Hello", function() {
it("world", function() {
expect(false).to.be.true;
});
});
// Into 100% OOP awesomeness:
@suite class Hello {
@test world() {
expect(false).to.be.true;
}
}
// P.S. You can still mix and match!
This is the monorepo for the testdeck packages.
Clone this repository using
git clone https://github.com/testdeck/testdeck.git
Then from inside the so created testdeck
directory run
npm install
This will install all required dependencies and will also bootstrap lerna
.
The following npm scripts are available
npm run tslint
-- runstslint
on all sources in all available packagesnpm run tslint-fix
-- runstslint --fix
on all sources in all available packagesnpm test
-- run all tests on all available packages