jest-qase-reporter 1.3.0-alpha.4 → 2.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +0,0 @@
1
- {
2
- "name": "examples",
3
- "version": "1.0.0",
4
- "description": "",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "jest"
8
- },
9
- "author": "",
10
- "license": "ISC",
11
- "devDependencies": {
12
- "jest": "^27.0.4"
13
- },
14
- "dependencies": {
15
- "jest-qase-reporter": "../"
16
- }
17
- }
@@ -1,6 +0,0 @@
1
- const add = (a, b) => a + b;
2
- const mul = (a, b) => a * b;
3
- const sub = (a, b) => a - b;
4
- const div = (a, b) => a / b;
5
-
6
- module.exports = { add, mul, sub, div };
@@ -1,75 +0,0 @@
1
- const { add, mul, sub, div } = require('./arith');
2
- const { qase } = require('jest-qase-reporter/dist/jest');
3
-
4
- describe("Test suite", () => {
5
- test('2 + 3 = 5 without qase wrapper', () => {
6
- expect(add(2, 3)).toBe(5);
7
- });
8
-
9
- test.skip('2 + 3 = 5 skipped', () => {
10
- expect(add(2, 3)).toBe(5);
11
- });
12
-
13
- test('2 + 3 = 6', () => {
14
- expect(add(2, 3)).toBe(6);
15
- });
16
-
17
- describe('Suite for the some nested cases', () => {
18
- test('Nested 1', () => {
19
- expect(add(2, 3)).toBe(5);
20
- });
21
-
22
- test.skip('2 + 3 = 5 skipped', () => {
23
- expect(add(2, 3)).toBe(5);
24
- });
25
-
26
- test('2 + 3 = 6 Wrong case', () => {
27
- expect(add(2, 3)).toBe(6);
28
- });
29
-
30
- test('Async test case', async () => {
31
- await new Promise((r) => setTimeout(r, 2000));
32
- expect(mul(3, 4)).toBe(12);
33
- });
34
- })
35
-
36
- describe("Test suite", () => {
37
-
38
- for (let i = 0; i <= 100; i++) {
39
- test(`${i} + ${i} autogenerated case`, () => {
40
- expect(add(i, i)).toBe(i * 2);
41
- });
42
- }
43
-
44
- test('2 + 3 = 5 without qase wrapper', () => {
45
- expect(add(2, 3)).toBe(5);
46
- });
47
-
48
- test.skip('2 + 3 = 5 skipped', () => {
49
- expect(add(2, 3)).toBe(5);
50
- });
51
-
52
- test('2 + 3 = 6', () => {
53
- expect(add(2, 3)).toBe(6);
54
- });
55
-
56
- describe('Suite for the some nested cases', () => {
57
- test('Nested 1', () => {
58
- expect(add(2, 3)).toBe(5);
59
- });
60
-
61
- test.skip('2 + 3 = 5 skipped', () => {
62
- expect(add(2, 3)).toBe(5);
63
- });
64
-
65
- test('2 + 3 = 6 Wrong case', () => {
66
- expect(add(2, 3)).toBe(6);
67
- });
68
-
69
- test('Async test case', async () => {
70
- await new Promise((r) => setTimeout(r, 2000));
71
- expect(mul(3, 4)).toBe(12);
72
- });
73
- })
74
- })
75
- })
@@ -1,9 +0,0 @@
1
- import 'jest';
2
- import QaseReporter from '../src';
3
-
4
- describe('Client', () => {
5
- it('Init client', () => {
6
- const options = {apiToken: "", projectCode: ""};
7
- new QaseReporter({}, options);
8
- });
9
- });