@vendure/testing 2.1.0-next.4 → 2.1.0-next.5

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.
@@ -31,7 +31,7 @@ export interface TestEnvironment {
31
31
  * for use in end-to-end tests. Returns a {@link TestEnvironment} object.
32
32
  *
33
33
  * @example
34
- * ```TypeScript
34
+ * ```ts
35
35
  * import { createTestEnvironment, testConfig } from '\@vendure/testing';
36
36
  *
37
37
  * describe('some feature to test', () => {
@@ -9,7 +9,7 @@ const test_server_1 = require("./test-server");
9
9
  * for use in end-to-end tests. Returns a {@link TestEnvironment} object.
10
10
  *
11
11
  * @example
12
- * ```TypeScript
12
+ * ```ts
13
13
  * import { createTestEnvironment, testConfig } from '\@vendure/testing';
14
14
  *
15
15
  * describe('some feature to test', () => {
@@ -7,7 +7,7 @@
7
7
  * type inference to work as expected:
8
8
  *
9
9
  * @example
10
- * ```TypeScript
10
+ * ```ts
11
11
  * const orderResultGuard: ErrorResultGuard<AddItemToOrderResult>
12
12
  * = createErrorResultGuard(order => !!order.lines);
13
13
  * ```
@@ -23,7 +23,7 @@ export declare function createErrorResultGuard<T>(testFn: (input: T) => boolean)
23
23
  * 2. narrow the type so that TypeScript can correctly infer the properties of the result.
24
24
  *
25
25
  * @example
26
- * ```TypeScript
26
+ * ```ts
27
27
  * const orderResultGuard: ErrorResultGuard<AddItemToOrderResult>
28
28
  * = createErrorResultGuard(order => !!order.lines);
29
29
  *
@@ -11,7 +11,7 @@ const assert_1 = require("assert");
11
11
  * type inference to work as expected:
12
12
  *
13
13
  * @example
14
- * ```TypeScript
14
+ * ```ts
15
15
  * const orderResultGuard: ErrorResultGuard<AddItemToOrderResult>
16
16
  * = createErrorResultGuard(order => !!order.lines);
17
17
  * ```
@@ -30,7 +30,7 @@ exports.createErrorResultGuard = createErrorResultGuard;
30
30
  * 2. narrow the type so that TypeScript can correctly infer the properties of the result.
31
31
  *
32
32
  * @example
33
- * ```TypeScript
33
+ * ```ts
34
34
  * const orderResultGuard: ErrorResultGuard<AddItemToOrderResult>
35
35
  * = createErrorResultGuard(order => !!order.lines);
36
36
  *
@@ -8,7 +8,7 @@ import { BaseConnectionOptions } from 'typeorm/connection/BaseConnectionOptions'
8
8
  * it with the {@link registerInitializer} function:
9
9
  *
10
10
  * @example
11
- * ```TypeScript
11
+ * ```ts
12
12
  * export class CockroachDbInitializer implements TestDbInitializer<CockroachConnectionOptions> {
13
13
  * // database-specific implementation goes here
14
14
  * }
@@ -9,7 +9,7 @@ import { VendureLogger } from '@vendure/core';
9
9
  * (e.g. replacing `jest.fn()` with `jasmine.createSpy()`).
10
10
  *
11
11
  * @example
12
- * ```TypeScript
12
+ * ```ts
13
13
  * // e2e test example
14
14
  * import { createTestEnvironment, TestingLogger } from '\@vendure/testing';
15
15
  *
@@ -33,7 +33,7 @@ import { VendureLogger } from '@vendure/core';
33
33
  * ```
34
34
  *
35
35
  * @example
36
- * ```TypeScript
36
+ * ```ts
37
37
  * // unit test example
38
38
  * import { Test } from '\@nestjs/testing';
39
39
  * import { Logger } from '\@vendure/core';
@@ -11,7 +11,7 @@ exports.TestingLogger = void 0;
11
11
  * (e.g. replacing `jest.fn()` with `jasmine.createSpy()`).
12
12
  *
13
13
  * @example
14
- * ```TypeScript
14
+ * ```ts
15
15
  * // e2e test example
16
16
  * import { createTestEnvironment, TestingLogger } from '\@vendure/testing';
17
17
  *
@@ -35,7 +35,7 @@ exports.TestingLogger = void 0;
35
35
  * ```
36
36
  *
37
37
  * @example
38
- * ```TypeScript
38
+ * ```ts
39
39
  * // unit test example
40
40
  * import { Test } from '\@nestjs/testing';
41
41
  * import { Logger } from '\@vendure/core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendure/testing",
3
- "version": "2.1.0-next.4",
3
+ "version": "2.1.0-next.5",
4
4
  "description": "End-to-end testing tools for Vendure projects",
5
5
  "keywords": [
6
6
  "vendure",
@@ -38,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "@graphql-typed-document-node/core": "^3.2.0",
40
40
  "@types/node-fetch": "^2.6.4",
41
- "@vendure/common": "2.1.0-next.4",
41
+ "@vendure/common": "2.1.0-next.5",
42
42
  "faker": "^4.1.0",
43
43
  "form-data": "^4.0.0",
44
44
  "graphql": "16.8.0",
@@ -49,11 +49,11 @@
49
49
  "devDependencies": {
50
50
  "@types/mysql": "^2.15.15",
51
51
  "@types/pg": "^7.14.5",
52
- "@vendure/core": "2.1.0-next.4",
52
+ "@vendure/core": "2.1.0-next.5",
53
53
  "mysql": "^2.18.1",
54
54
  "pg": "^8.4.0",
55
55
  "rimraf": "^3.0.0",
56
56
  "typescript": "4.9.5"
57
57
  },
58
- "gitHead": "10ba12c0a870f30bb083bffc142feb040f76db22"
58
+ "gitHead": "b4b78ba7ac534e5995877e46421870b114f429de"
59
59
  }