beartest-js 5.0.1 → 5.0.4
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.
- package/index.d.ts +25 -10
- package/index.js +1 -1
- package/package.json +3 -4
package/index.d.ts
CHANGED
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
type test = (name: string, fn: () => void | Promise<void>) => void;
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare
|
|
11
|
-
export declare
|
|
12
|
-
|
|
3
|
+
type Describe = (headline: string, fn: () => void) => Promise<boolean>;
|
|
4
|
+
type It = test & { only: test; skip: test };
|
|
5
|
+
type BeforeAll = (fn: () => void | Promise<void>) => void;
|
|
6
|
+
type AfterAll = (fn: () => void | Promise<void>) => void;
|
|
7
|
+
type BeforeEach = (fn: () => void | Promise<void>) => void;
|
|
8
|
+
type AfterEach = (fn: () => void | Promise<void>) => void;
|
|
9
|
+
|
|
10
|
+
export declare const describe: Describe;
|
|
11
|
+
export declare const it: It;
|
|
12
|
+
|
|
13
|
+
export declare const beforeAll: BeforeAll;
|
|
14
|
+
export declare const afterAll: AfterAll;
|
|
15
|
+
export declare const beforeEach: BeforeEach;
|
|
16
|
+
export declare const afterEach: AfterEach;
|
|
17
|
+
|
|
18
|
+
interface BearTest {
|
|
19
|
+
describe: Describe;
|
|
20
|
+
it: It;
|
|
21
|
+
beforeAll: BeforeAll;
|
|
22
|
+
afterAll: AfterAll;
|
|
23
|
+
beforeEach: BeforeEach;
|
|
24
|
+
afterEach: AfterEach;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export default BearTest;
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = require("./beartest
|
|
1
|
+
module.exports = require("./beartest");
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "beartest-js",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4",
|
|
4
4
|
"description": "Bear Bones Testing",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/rubber-duck-software/beartest.git"
|
|
8
8
|
},
|
|
9
9
|
"types": "index.d.ts",
|
|
10
|
-
"
|
|
10
|
+
"main": "index.js",
|
|
11
11
|
"bin": {
|
|
12
12
|
"beartest": "testrunner.js"
|
|
13
13
|
},
|
|
14
14
|
"author": "Grant Colestock",
|
|
15
15
|
"license": "MIT",
|
|
16
|
-
"type": "
|
|
16
|
+
"type": "commonjs",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"barecolor": "^1.0.1",
|
|
19
19
|
"tiny-glob": "^0.2.8"
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"url": "https://github.com/rubber-duck-software/beartest/issues"
|
|
23
23
|
},
|
|
24
24
|
"homepage": "https://github.com/rubber-duck-software/beartest#readme",
|
|
25
|
-
"main": "index.js",
|
|
26
25
|
"devDependencies": {},
|
|
27
26
|
"scripts": {
|
|
28
27
|
"test": "echo \"Error: no test specified\" && exit 1"
|