@sprucelabs/test 9.0.1 → 9.0.3
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.
|
@@ -37,7 +37,6 @@ export default function test(description, ...args) {
|
|
|
37
37
|
hookupTestClass(target);
|
|
38
38
|
const bound = descriptor.value.bind(target);
|
|
39
39
|
// Make sure each test gets the spruce
|
|
40
|
-
// eslint-disable-next-line no-undef
|
|
41
40
|
it(description !== null && description !== void 0 ? description : propertyKey, () => __awaiter(this, void 0, void 0, function* () {
|
|
42
41
|
//@ts-ignore
|
|
43
42
|
global.activeTest = {
|
|
@@ -57,7 +56,6 @@ test.only = (description, ...args) => {
|
|
|
57
56
|
hookupTestClass(target);
|
|
58
57
|
const bound = descriptor.value.bind(target);
|
|
59
58
|
// Make sure each test gets the spruce
|
|
60
|
-
// eslint-disable-next-line no-undef
|
|
61
59
|
it.only(description !== null && description !== void 0 ? description : propertyKey, () => __awaiter(this, void 0, void 0, function* () {
|
|
62
60
|
return bound(...args);
|
|
63
61
|
}));
|
|
@@ -71,7 +69,6 @@ test.todo = (description, ..._args) => {
|
|
|
71
69
|
// Lets attach before/after
|
|
72
70
|
hookupTestClass(target);
|
|
73
71
|
// Make sure each test gets the spruce
|
|
74
|
-
// eslint-disable-next-line no-undef
|
|
75
72
|
it.todo(description !== null && description !== void 0 ? description : propertyKey);
|
|
76
73
|
};
|
|
77
74
|
};
|
|
@@ -84,7 +81,6 @@ test.skip = (description, ...args) => {
|
|
|
84
81
|
hookupTestClass(target);
|
|
85
82
|
const bound = descriptor.value.bind(target);
|
|
86
83
|
// Make sure each test gets the spruce
|
|
87
|
-
// eslint-disable-next-line no-undef
|
|
88
84
|
it.skip(description !== null && description !== void 0 ? description : propertyKey, () => __awaiter(this, void 0, void 0, function* () {
|
|
89
85
|
return bound(...args);
|
|
90
86
|
}));
|
package/build/lib/decorators.js
CHANGED
|
@@ -32,7 +32,6 @@ function test(description, ...args) {
|
|
|
32
32
|
hookupTestClass(target);
|
|
33
33
|
const bound = descriptor.value.bind(target);
|
|
34
34
|
// Make sure each test gets the spruce
|
|
35
|
-
// eslint-disable-next-line no-undef
|
|
36
35
|
it(description ?? propertyKey, async () => {
|
|
37
36
|
//@ts-ignore
|
|
38
37
|
global.activeTest = {
|
|
@@ -53,7 +52,6 @@ test.only = (description, ...args) => {
|
|
|
53
52
|
hookupTestClass(target);
|
|
54
53
|
const bound = descriptor.value.bind(target);
|
|
55
54
|
// Make sure each test gets the spruce
|
|
56
|
-
// eslint-disable-next-line no-undef
|
|
57
55
|
it.only(description ?? propertyKey, async () => {
|
|
58
56
|
return bound(...args);
|
|
59
57
|
});
|
|
@@ -67,7 +65,6 @@ test.todo = (description, ..._args) => {
|
|
|
67
65
|
// Lets attach before/after
|
|
68
66
|
hookupTestClass(target);
|
|
69
67
|
// Make sure each test gets the spruce
|
|
70
|
-
// eslint-disable-next-line no-undef
|
|
71
68
|
it.todo(description ?? propertyKey);
|
|
72
69
|
};
|
|
73
70
|
};
|
|
@@ -80,7 +77,6 @@ test.skip = (description, ...args) => {
|
|
|
80
77
|
hookupTestClass(target);
|
|
81
78
|
const bound = descriptor.value.bind(target);
|
|
82
79
|
// Make sure each test gets the spruce
|
|
83
|
-
// eslint-disable-next-line no-undef
|
|
84
80
|
it.skip(description ?? propertyKey, async () => {
|
|
85
81
|
return bound(...args);
|
|
86
82
|
});
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "9.0.
|
|
6
|
+
"version": "9.0.3",
|
|
7
7
|
"skill": {
|
|
8
8
|
"namespace": "spruce-test",
|
|
9
9
|
"upgradeIgnoreList": [
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"lint.tsc": "tsc -p . --noEmit",
|
|
55
55
|
"local": "node --inspect=5200 ./build/index.js",
|
|
56
56
|
"post.watch.build": "true",
|
|
57
|
-
"rebuild": "yarn clean.all && yarn && yarn build.dev",
|
|
57
|
+
"rebuild": "yarn clean.all && yarn install && yarn build.dev",
|
|
58
58
|
"release": "semantic-release",
|
|
59
59
|
"resolve-paths.lint": "yarn build.resolve-paths ; yarn lint",
|
|
60
60
|
"test": "jest",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"upgrade.packages.test": "yarn upgrade.packages.all && yarn lint && yarn build.dev && yarn test",
|
|
65
65
|
"watch.build.dev": "tsc-watch --sourceMap --onCompilationComplete 'yarn post.watch.build'",
|
|
66
66
|
"watch.lint": "true",
|
|
67
|
-
"watch.rebuild": "yarn clean.all && yarn && yarn watch.build.dev",
|
|
67
|
+
"watch.rebuild": "yarn clean.all && yarn install && yarn watch.build.dev",
|
|
68
68
|
"watch.tests": "jest --watch",
|
|
69
69
|
"watch.tsc": "tsc -w"
|
|
70
70
|
},
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@types/jest": "^29.5.12",
|
|
86
86
|
"@types/lodash": "^4.17.0",
|
|
87
87
|
"eslint": "^9.0.0",
|
|
88
|
-
"eslint-config-spruce": "^11.2.
|
|
88
|
+
"eslint-config-spruce": "^11.2.7",
|
|
89
89
|
"prettier": "^3.2.5",
|
|
90
90
|
"tsc-watch": "^6.2.0",
|
|
91
91
|
"tsconfig-paths": "^4.2.0",
|