Skip to content

Commit

Permalink
Release v0.3.0 (#318)
Browse files Browse the repository at this point in the history
- fix #300
  • Loading branch information
silkentrance committed Oct 30, 2022
1 parent 6e25fe7 commit 329c9d7
Show file tree
Hide file tree
Showing 11 changed files with 1,350 additions and 1,103 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## v0.3.0 (2022-10-28)

#### :rocket: New Feature
* `vitest`
* [#300](https://github.com/testdeck/testdeck/pull/300) add initial support for vitest ([@silkentrance](https://github.com/silkentrance))

#### :memo: Documentation
* `core`, `di-typedi`, `jasmine`, `jest`, `mocha`, `vitest`
* [#320](https://github.com/testdeck/testdeck/pull/320) use github workflow badge instead of appveyor/travis-ci ([@silkentrance](https://github.com/silkentrance))

#### Committers: 1
- Carsten Klein ([@silkentrance](https://github.com/silkentrance))

## v0.2.2 (2022-10-28)

#### :house: Internal
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
]
}
},
"version": "0.2.2"
"version": "0.3.0"
}
2,384 changes: 1,308 additions & 1,076 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@testdeck/core",
"version": "0.2.2",
"version": "0.3.0",
"description": "Core framework for decorator based object oriented testing",
"keywords": [
"test",
Expand Down
6 changes: 3 additions & 3 deletions packages/di-typedi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@testdeck/di-typedi",
"version": "0.2.2",
"version": "0.3.0",
"description": "TypeDI IOC integration for testdeck",
"author": "Panayot Cankov",
"contributors": [
Expand All @@ -24,8 +24,8 @@
"tslint-fix": "tslint --project . --fix"
},
"devDependencies": {
"@testdeck/core": "^0.2.2",
"@testdeck/mocha": "^0.2.2",
"@testdeck/core": "^0.3.0",
"@testdeck/mocha": "^0.3.0",
"@types/mocha": "^9.0.0",
"reflect-metadata": "^0.1.13",
"typedi": "^0.8.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/jasmine/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@testdeck/jasmine",
"version": "0.2.2",
"version": "0.3.0",
"description": "Object oriented testing for the Jasmine test framework",
"keywords": [
"test",
Expand Down Expand Up @@ -35,7 +35,7 @@
"tslint-fix": "tslint --project . --fix"
},
"dependencies": {
"@testdeck/core": "^0.2.2"
"@testdeck/core": "^0.3.0"
},
"devDependencies": {
"@types/jasmine": "latest"
Expand Down
4 changes: 2 additions & 2 deletions packages/jest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@testdeck/jest",
"version": "0.2.2",
"version": "0.3.0",
"description": "Object oriented testing for the Jest test framework",
"keywords": [
"test",
Expand Down Expand Up @@ -35,7 +35,7 @@
"tslint-fix": "tslint --project . --fix"
},
"dependencies": {
"@testdeck/core": "^0.2.2"
"@testdeck/core": "^0.3.0"
},
"devDependencies": {
"@types/jest": "latest"
Expand Down
4 changes: 2 additions & 2 deletions packages/mocha/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@testdeck/mocha",
"version": "0.2.2",
"version": "0.3.0",
"description": "Object oriented testing for the Mocha test framework",
"keywords": [
"test",
Expand Down Expand Up @@ -38,7 +38,7 @@
"tslint-fix": "tslint --project . --fix"
},
"dependencies": {
"@testdeck/core": "^0.2.2"
"@testdeck/core": "^0.3.0"
},
"nyc": {
"check-coverage": true,
Expand Down
19 changes: 10 additions & 9 deletions packages/vitest/README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
## @testdeck/jest
## @testdeck/vitest

[![Get it on NPM](https://img.shields.io/npm/v/@testdeck/jest.svg)](https://www.npmjs.com/package/@testdeck/jest)
[![Downloads per Week](https://img.shields.io/npm/dw/@testdeck/jest.svg)](https://www.npmjs.com/package/@testdeck/jest)
[![Get it on NPM](https://img.shields.io/npm/v/@testdeck/vitest.svg)](https://www.npmjs.com/package/@testdeck/vitest)
[![Downloads per Week](https://img.shields.io/npm/dw/@testdeck/vitest.svg)](https://www.npmjs.com/package/@testdeck/vitest)
[![Issues](https://img.shields.io/github/issues/testdeck/testdeck.svg)](https://github.com/testdeck/testdeck/issues)
[![Pull Requests](https://img.shields.io/github/issues-pr/testdeck/testdeck.svg)](https://github.com/testdeck/testdeck/pulls)
[![Build Status](https://github.com/testdeck/testdeck/actions/workflows/main.yml/badge.svg)](https://github.com/testdeck/testdeck/actions/workflows/main.yml)
![Apache 2.0 License](https://img.shields.io/npm/l/@testdeck/jest.svg)
![Apache 2.0 License](https://img.shields.io/npm/l/@testdeck/vitest.svg)

Jest tests in OOP style!
Vitest tests in OOP style!

```TypeScript
import { suite, test } from "@testdeck/jest";
import { suite, test } from "@testdeck/vitest";
import { expect } from "chai";

@suite
class Hello {

@test
world() {
expect(false).toBe(true);
expect(false).to.be.true;
}
}
```
Expand Down Expand Up @@ -47,11 +48,11 @@ guide for which a link has been provided below.

## Getting Started

To get you started, a [seed has been provided](https://github.com/testdeck/testdeck-jest-seed) that can help you with
To get you started, a [seed has been provided](https://github.com/testdeck/testdeck-vitest-seed) that can help you with
setting up your project.

```shell
git clone https://github.com/testdeck/testdeck-jest-seed.git
git clone https://github.com/testdeck/testdeck-vitest-seed.git
```

## Additional Information
Expand Down
9 changes: 5 additions & 4 deletions packages/vitest/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as core from "@testdeck/core";

import { describe, it, beforeAll, beforeEach, afterEach, afterAll, HookListener } from "vitest";
import { afterAll, afterEach, beforeAll, beforeEach, describe, it } from "vitest";


const vitestRunner: core.TestRunner = {
Expand All @@ -21,18 +21,19 @@ const vitestRunner: core.TestRunner = {
}
},
test(name: string, callback: core.CallbackOptionallyAsync, settings?: core.TestSettings): void {
const testSettings = { timeout: settings && settings.timeout, retry: settings && settings.retries };
switch (settings && settings.execution) {
case "only":
it.only(name, callback, settings && settings.timeout);
it.only(name, callback, testSettings);
break;
case "skip":
it.skip(name, callback, settings && settings.timeout);
it.skip(name, callback, testSettings);
break;
case "pending":
it.todo(name);
break;
default:
it(name, callback, settings && settings.timeout);
it(name, callback, testSettings);
}
},
beforeAll(name: string, callback: core.CallbackOptionallyAsync, settings?: core.LifecycleSettings): void {
Expand Down
6 changes: 3 additions & 3 deletions packages/vitest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@testdeck/vitest",
"version": "0.2.2",
"version": "0.3.0",
"description": "Object oriented testing for the Vitest test framework",
"keywords": [
"test",
Expand Down Expand Up @@ -35,7 +35,7 @@
"tslint-fix": "tslint --project . --fix"
},
"dependencies": {
"@testdeck/core": "0.2.2"
"@testdeck/core": "^0.3.0"
},
"devDependencies": {
"vite": "latest",
Expand All @@ -52,4 +52,4 @@
"publishConfig": {
"access": "public"
}
}
}

0 comments on commit 329c9d7

Please sign in to comment.