@bagaar/ember-graphql-mocking 0.11.0 → 0.11.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.
- package/CHANGELOG.md +28 -0
- package/README.md +2 -2
- package/declarations/index.d.ts +0 -1
- package/declarations/template-registry.d.ts +0 -1
- package/declarations/test-support/index.d.ts +2 -2
- package/dist/test-support/index.js +14 -7
- package/dist/test-support/index.js.map +1 -1
- package/package.json +51 -71
- package/declarations/index.d.ts.map +0 -1
- package/declarations/template-registry.d.ts.map +0 -1
- package/declarations/test-support/index.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## Release (2026-10-28)
|
|
4
|
+
|
|
5
|
+
* @bagaar/ember-graphql-mocking 0.11.3 (patch)
|
|
6
|
+
|
|
7
|
+
#### :house: Internal
|
|
8
|
+
* Other
|
|
9
|
+
* [#212](https://github.com/Bagaar/ember-graphql-mocking/pull/212) chore: dont ignore renovate bot as a committer for the changelog ([@gvdp](https://github.com/gvdp))
|
|
10
|
+
* `@bagaar/ember-graphql-mocking`
|
|
11
|
+
* [#208](https://github.com/Bagaar/ember-graphql-mocking/pull/208) chore(deps): pin dependencies ([@renovate[bot]](https://github.com/apps/renovate))
|
|
12
|
+
|
|
13
|
+
#### Committers: 2
|
|
14
|
+
- Renovate [Bot] ([@renovate](https://github.com/apps/renovate))
|
|
15
|
+
- [@gvdp](https://github.com/gvdp)
|
|
16
|
+
|
|
17
|
+
## Release (2025-02-05)
|
|
18
|
+
|
|
19
|
+
@bagaar/ember-graphql-mocking 0.11.1 (patch)
|
|
20
|
+
|
|
21
|
+
#### :house: Internal
|
|
22
|
+
* Other
|
|
23
|
+
* [#198](https://github.com/Bagaar/ember-graphql-mocking/pull/198) Set up Release Plan ([@bertdeblock](https://github.com/bertdeblock))
|
|
24
|
+
* `@bagaar/ember-graphql-mocking`
|
|
25
|
+
* [#197](https://github.com/Bagaar/ember-graphql-mocking/pull/197) Update `release-it` setup ([@bertdeblock](https://github.com/bertdeblock))
|
|
26
|
+
|
|
27
|
+
#### Committers: 1
|
|
28
|
+
- Bert De Block ([@bertdeblock](https://github.com/bertdeblock))
|
|
1
29
|
|
|
2
30
|
## v0.11.0 (2024-03-06)
|
|
3
31
|
|
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ yarn add -D @bagaar/ember-graphql-mocking msw
|
|
|
27
27
|
|
|
28
28
|
## Usage
|
|
29
29
|
|
|
30
|
-
### 1. Set up
|
|
30
|
+
### 1. Set up @bagaar/ember-graphql-mocking
|
|
31
31
|
|
|
32
32
|
In `tests/test-helper.js`:
|
|
33
33
|
1. Import `setupEmberGraphqlMocking`
|
|
@@ -92,7 +92,7 @@ import { visit, currentURL } from '@ember/test-helpers';
|
|
|
92
92
|
import { setupApplicationTest } from 'my-app/tests/helpers';
|
|
93
93
|
import { mockResolvers, setupGraphqlTest } from '@bagaar/ember-graphql-mocking/test-support'; // 1.
|
|
94
94
|
|
|
95
|
-
module('Acceptance | ember
|
|
95
|
+
module('Acceptance | ember-graphql-mocking', function (hooks) {
|
|
96
96
|
setupApplicationTest(hooks);
|
|
97
97
|
setupGraphqlTest(hooks); // 2.
|
|
98
98
|
|
package/declarations/index.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -7,11 +7,11 @@ type Hooks = {
|
|
|
7
7
|
after(fn: () => void | Promise<void>): void;
|
|
8
8
|
afterEach(fn: () => void | Promise<void>): void;
|
|
9
9
|
before(fn: () => void | Promise<void>): void;
|
|
10
|
+
beforeEach(fn: () => void | Promise<void>): void;
|
|
10
11
|
};
|
|
11
12
|
export declare function setupEmberGraphqlMocking(schemaDocument: DocumentNode, providedOptions?: Options): Promise<void>;
|
|
12
13
|
export declare function setupGraphqlTest(hooks: Hooks): void;
|
|
13
14
|
export declare function mockResolvers(resolvers: object): void;
|
|
14
15
|
export declare function getWorker(): SetupWorker;
|
|
15
|
-
export declare function
|
|
16
|
+
export declare function stopWorker(): void;
|
|
16
17
|
export {};
|
|
17
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { assert } from '@ember/debug';
|
|
2
2
|
import { buildASTSchema, graphql as graphql$1 } from 'graphql';
|
|
3
|
-
import merge from 'lodash.merge';
|
|
4
3
|
import { graphql, HttpResponse } from 'msw';
|
|
5
4
|
import { setupWorker } from 'msw/browser';
|
|
6
5
|
|
|
@@ -18,11 +17,14 @@ const DEFAULT_OPTIONS = {
|
|
|
18
17
|
let isSetupGraphqlTestCalled = false;
|
|
19
18
|
let root = null;
|
|
20
19
|
let worker = null;
|
|
20
|
+
let options = null;
|
|
21
21
|
async function setupEmberGraphqlMocking(schemaDocument, providedOptions) {
|
|
22
|
-
|
|
22
|
+
options = {
|
|
23
|
+
...DEFAULT_OPTIONS,
|
|
24
|
+
...providedOptions
|
|
25
|
+
};
|
|
23
26
|
createWorker();
|
|
24
27
|
createGraphqlOperationHandler(schemaDocument);
|
|
25
|
-
await startWorker(options.mswStartOptions);
|
|
26
28
|
}
|
|
27
29
|
function setupGraphqlTest(hooks) {
|
|
28
30
|
assert('Cannot call `setupGraphqlTest` without providing the `hooks` argument. Please make sure to call `setupGraphqlTest(hooks);`.', hooks);
|
|
@@ -32,7 +34,13 @@ function setupGraphqlTest(hooks) {
|
|
|
32
34
|
hooks.after(() => {
|
|
33
35
|
isSetupGraphqlTestCalled = false;
|
|
34
36
|
});
|
|
35
|
-
hooks.
|
|
37
|
+
hooks.beforeEach(async () => {
|
|
38
|
+
await startWorker(options?.mswStartOptions || {});
|
|
39
|
+
});
|
|
40
|
+
hooks.afterEach(() => {
|
|
41
|
+
stopWorker();
|
|
42
|
+
clearRoot();
|
|
43
|
+
});
|
|
36
44
|
}
|
|
37
45
|
function mockResolvers(resolvers) {
|
|
38
46
|
assert('Cannot call `mockResolvers` before calling `setupGraphqlTest`. Please make sure to call `setupGraphqlTest(hooks);`.', isSetupGraphqlTestCalled);
|
|
@@ -45,10 +53,9 @@ function getWorker() {
|
|
|
45
53
|
assert('Cannot call `getWorker` before calling `setupEmberGraphqlMocking`. Please make sure to call `setupEmberGraphqlMocking(yourSchemaDocument[, yourProvidedOptions]);`.', worker);
|
|
46
54
|
return worker;
|
|
47
55
|
}
|
|
48
|
-
function
|
|
56
|
+
function stopWorker() {
|
|
49
57
|
assert('Cannot call `destroyWorker` before calling `setupEmberGraphqlMocking`. Please make sure to call `setupEmberGraphqlMocking(yourSchemaDocument[, yourProvidedOptions]);`.', worker);
|
|
50
58
|
worker.stop();
|
|
51
|
-
worker = null;
|
|
52
59
|
}
|
|
53
60
|
function createWorker() {
|
|
54
61
|
worker = setupWorker();
|
|
@@ -90,5 +97,5 @@ function clearRoot() {
|
|
|
90
97
|
root = null;
|
|
91
98
|
}
|
|
92
99
|
|
|
93
|
-
export {
|
|
100
|
+
export { getWorker, mockResolvers, setupEmberGraphqlMocking, setupGraphqlTest, stopWorker };
|
|
94
101
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/test-support/index.ts"],"sourcesContent":["import { assert } from '@ember/debug';\nimport { buildASTSchema, graphql, type DocumentNode } from 'graphql';\nimport
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/test-support/index.ts"],"sourcesContent":["import { assert } from '@ember/debug';\nimport { buildASTSchema, graphql, type DocumentNode } from 'graphql';\nimport { graphql as mswGraphql, HttpResponse } from 'msw';\nimport { setupWorker, type SetupWorker, type StartOptions } from 'msw/browser';\n\ninterface Options {\n mswStartOptions: StartOptions;\n}\n\ntype WindowWithTestem = typeof window & { Testem: unknown };\n\ntype Hooks = {\n after(fn: () => void | Promise<void>): void;\n afterEach(fn: () => void | Promise<void>): void;\n before(fn: () => void | Promise<void>): void;\n beforeEach(fn: () => void | Promise<void>): void;\n};\n\nconst IS_TESTEM = Boolean((window as WindowWithTestem).Testem);\nconst DEFAULT_OPTIONS: Options = {\n mswStartOptions: {\n quiet: IS_TESTEM,\n serviceWorker: {\n options: {\n scope: IS_TESTEM ? window.location.pathname : '/tests',\n },\n },\n },\n};\n\nlet isSetupGraphqlTestCalled = false;\nlet root: object | null = null;\nlet worker: SetupWorker | null = null;\nlet options: Options | null = null;\n\nexport async function setupEmberGraphqlMocking(\n schemaDocument: DocumentNode,\n providedOptions?: Options,\n) {\n options = { ...DEFAULT_OPTIONS, ...providedOptions };\n createWorker();\n createGraphqlOperationHandler(schemaDocument);\n}\n\nexport function setupGraphqlTest(hooks: Hooks) {\n assert(\n 'Cannot call `setupGraphqlTest` without providing the `hooks` argument. Please make sure to call `setupGraphqlTest(hooks);`.',\n hooks,\n );\n\n hooks.before(() => {\n isSetupGraphqlTestCalled = true;\n });\n\n hooks.after(() => {\n isSetupGraphqlTestCalled = false;\n });\n\n hooks.beforeEach(async () => {\n await startWorker(options?.mswStartOptions || {});\n });\n\n hooks.afterEach(() => {\n stopWorker();\n clearRoot();\n });\n}\n\nexport function mockResolvers(resolvers: object) {\n assert(\n 'Cannot call `mockResolvers` before calling `setupGraphqlTest`. Please make sure to call `setupGraphqlTest(hooks);`.',\n isSetupGraphqlTestCalled,\n );\n\n root = { ...root, ...resolvers };\n}\n\nexport function getWorker() {\n assert(\n 'Cannot call `getWorker` before calling `setupEmberGraphqlMocking`. Please make sure to call `setupEmberGraphqlMocking(yourSchemaDocument[, yourProvidedOptions]);`.',\n worker,\n );\n\n return worker;\n}\n\nexport function stopWorker() {\n assert(\n 'Cannot call `destroyWorker` before calling `setupEmberGraphqlMocking`. Please make sure to call `setupEmberGraphqlMocking(yourSchemaDocument[, yourProvidedOptions]);`.',\n worker,\n );\n\n worker.stop();\n}\n\nfunction createWorker() {\n worker = setupWorker();\n}\n\nfunction createGraphqlOperationHandler(schemaDocument: DocumentNode) {\n assert('[BUG] `worker` is not set.', worker);\n\n const schema = buildASTSchema(schemaDocument);\n const graphqlOperation = mswGraphql.operation(async ({ request }) => {\n const { query, variables } = (await request.json()) || {\n query: '',\n variables: {},\n };\n\n const { data, errors } = await graphql({\n rootValue: root,\n schema,\n source: query,\n variableValues: variables,\n });\n\n return HttpResponse.json({ data, errors });\n });\n\n worker.use(graphqlOperation);\n}\n\nasync function startWorker(mswStartOptions: Options['mswStartOptions']) {\n assert('[BUG] `worker` is not set.', worker);\n\n await worker.start(mswStartOptions);\n}\n\nfunction clearRoot() {\n root = null;\n}\n"],"names":["IS_TESTEM","Boolean","window","Testem","DEFAULT_OPTIONS","mswStartOptions","quiet","serviceWorker","options","scope","location","pathname","isSetupGraphqlTestCalled","root","worker","setupEmberGraphqlMocking","schemaDocument","providedOptions","createWorker","createGraphqlOperationHandler","setupGraphqlTest","hooks","assert","before","after","beforeEach","startWorker","afterEach","stopWorker","clearRoot","mockResolvers","resolvers","getWorker","stop","setupWorker","schema","buildASTSchema","graphqlOperation","mswGraphql","operation","request","query","variables","json","data","errors","graphql","rootValue","source","variableValues","HttpResponse","use","start"],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bagaar/ember-graphql-mocking",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.3",
|
|
4
4
|
"description": "Ember addon for mocking GraphQL requests using Mock Service Worker (MSW).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
7
7
|
"graphql",
|
|
8
8
|
"msw"
|
|
9
9
|
],
|
|
10
|
-
"repository":
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/Bagaar/ember-graphql-mocking.git"
|
|
13
|
+
},
|
|
11
14
|
"license": "MIT",
|
|
12
15
|
"author": "Bagaar",
|
|
13
16
|
"exports": {
|
|
@@ -41,60 +44,39 @@
|
|
|
41
44
|
"declarations",
|
|
42
45
|
"dist"
|
|
43
46
|
],
|
|
44
|
-
"scripts": {
|
|
45
|
-
"build": "concurrently 'npm:build:*'",
|
|
46
|
-
"build:js": "rollup --config",
|
|
47
|
-
"build:types": "glint --declaration",
|
|
48
|
-
"lint": "concurrently 'npm:lint:*(!fix)' --names 'lint:'",
|
|
49
|
-
"lint:fix": "concurrently 'npm:lint:*:fix' --names 'fix:'",
|
|
50
|
-
"lint:hbs": "ember-template-lint . --no-error-on-unmatched-pattern",
|
|
51
|
-
"lint:hbs:fix": "ember-template-lint . --fix --no-error-on-unmatched-pattern",
|
|
52
|
-
"lint:js": "eslint . --cache",
|
|
53
|
-
"lint:js:fix": "eslint . --fix",
|
|
54
|
-
"lint:types": "glint",
|
|
55
|
-
"prepack": "rollup --config",
|
|
56
|
-
"start": "concurrently 'npm:start:*'",
|
|
57
|
-
"start:js": "rollup --config --watch --no-watch.clearScreen",
|
|
58
|
-
"start:types": "glint --declaration --watch",
|
|
59
|
-
"test": "echo 'A v2 addon does not have tests, run tests in test-app'"
|
|
60
|
-
},
|
|
61
47
|
"dependencies": {
|
|
62
48
|
"@embroider/addon-shim": "^1.8.7",
|
|
63
|
-
"decorator-transforms": "^1.0.1"
|
|
64
|
-
"lodash.merge": "^4.6.2"
|
|
49
|
+
"decorator-transforms": "^1.0.1"
|
|
65
50
|
},
|
|
66
51
|
"devDependencies": {
|
|
67
|
-
"@babel/core": "
|
|
68
|
-
"@babel/plugin-transform-typescript": "
|
|
69
|
-
"@babel/runtime": "
|
|
70
|
-
"@embroider/addon-dev": "
|
|
71
|
-
"@glint/core": "
|
|
72
|
-
"@glint/environment-ember-loose": "
|
|
73
|
-
"@glint/environment-ember-template-imports": "
|
|
74
|
-
"@glint/template": "
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"@
|
|
78
|
-
"@
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"eslint": "
|
|
86
|
-
"eslint-
|
|
87
|
-
"eslint-plugin-
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"rollup": "^4.9.1",
|
|
96
|
-
"rollup-plugin-copy": "^3.5.0",
|
|
97
|
-
"typescript": "^5.3.3"
|
|
52
|
+
"@babel/core": "7.29.7",
|
|
53
|
+
"@babel/plugin-transform-typescript": "7.29.9",
|
|
54
|
+
"@babel/runtime": "7.29.10",
|
|
55
|
+
"@embroider/addon-dev": "4.3.1",
|
|
56
|
+
"@glint/core": "1.5.2",
|
|
57
|
+
"@glint/environment-ember-loose": "1.5.2",
|
|
58
|
+
"@glint/environment-ember-template-imports": "1.5.2",
|
|
59
|
+
"@glint/template": "1.11.0",
|
|
60
|
+
"@rollup/plugin-babel": "6.1.0",
|
|
61
|
+
"@tsconfig/ember": "3.0.12",
|
|
62
|
+
"@typescript-eslint/eslint-plugin": "6.21.0",
|
|
63
|
+
"@typescript-eslint/parser": "6.21.0",
|
|
64
|
+
"babel-plugin-ember-template-compilation": "2.4.1",
|
|
65
|
+
"concurrently": "8.2.2",
|
|
66
|
+
"ember-source": "5.6.0",
|
|
67
|
+
"ember-template-lint": "5.13.0",
|
|
68
|
+
"eslint": "8.57.1",
|
|
69
|
+
"eslint-config-prettier": "9.1.2",
|
|
70
|
+
"eslint-plugin-ember": "11.12.0",
|
|
71
|
+
"eslint-plugin-n": "16.6.2",
|
|
72
|
+
"eslint-plugin-prettier": "5.5.7",
|
|
73
|
+
"graphql": "16.14.2",
|
|
74
|
+
"msw": "2.15.0",
|
|
75
|
+
"prettier": "3.9.10",
|
|
76
|
+
"prettier-plugin-ember-template-tag": "1.1.0",
|
|
77
|
+
"rollup": "4.66.0",
|
|
78
|
+
"rollup-plugin-copy": "3.5.0",
|
|
79
|
+
"typescript": "5.9.3"
|
|
98
80
|
},
|
|
99
81
|
"peerDependencies": {
|
|
100
82
|
"ember-source": ">= 4.8.0",
|
|
@@ -113,25 +95,23 @@
|
|
|
113
95
|
"main": "addon-main.cjs",
|
|
114
96
|
"app-js": {}
|
|
115
97
|
},
|
|
116
|
-
"release-it": {
|
|
117
|
-
"git": {
|
|
118
|
-
"commitMessage": "Release v${version}",
|
|
119
|
-
"tagName": "v${version}"
|
|
120
|
-
},
|
|
121
|
-
"github": {
|
|
122
|
-
"release": true
|
|
123
|
-
},
|
|
124
|
-
"hooks": {
|
|
125
|
-
"before:git:release": "git add ../"
|
|
126
|
-
},
|
|
127
|
-
"plugins": {
|
|
128
|
-
"@release-it-plugins/lerna-changelog": {
|
|
129
|
-
"infile": "../CHANGELOG.md",
|
|
130
|
-
"launchEditor": false
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
98
|
"volta": {
|
|
135
99
|
"extends": "../package.json"
|
|
100
|
+
},
|
|
101
|
+
"scripts": {
|
|
102
|
+
"build": "concurrently 'npm:build:*'",
|
|
103
|
+
"build:js": "rollup --config",
|
|
104
|
+
"build:types": "glint --declaration",
|
|
105
|
+
"lint": "concurrently 'npm:lint:*(!fix)' --names 'lint:'",
|
|
106
|
+
"lint:fix": "concurrently 'npm:lint:*:fix' --names 'fix:'",
|
|
107
|
+
"lint:hbs": "ember-template-lint . --no-error-on-unmatched-pattern",
|
|
108
|
+
"lint:hbs:fix": "ember-template-lint . --fix --no-error-on-unmatched-pattern",
|
|
109
|
+
"lint:js": "eslint . --cache",
|
|
110
|
+
"lint:js:fix": "eslint . --fix",
|
|
111
|
+
"lint:types": "glint",
|
|
112
|
+
"start": "concurrently 'npm:start:*'",
|
|
113
|
+
"start:js": "rollup --config --watch --no-watch.clearScreen",
|
|
114
|
+
"start:types": "glint --declaration --watch",
|
|
115
|
+
"test": "echo 'A v2 addon does not have tests, run tests in test-app'"
|
|
136
116
|
}
|
|
137
|
-
}
|
|
117
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"template-registry.d.ts","sourceRoot":"","sources":["../src/template-registry.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,WAAW,QAAQ;CAEhC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/test-support/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAGrE,OAAO,EAAe,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAE/E,UAAU,OAAO;IACf,eAAe,EAAE,YAAY,CAAC;CAC/B;AAGD,KAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC5C,SAAS,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAChD,MAAM,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAC9C,CAAC;AAkBF,wBAAsB,wBAAwB,CAC5C,cAAc,EAAE,YAAY,EAC5B,eAAe,CAAC,EAAE,OAAO,iBAQ1B;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,QAe5C;AAED,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,QAO9C;AAED,wBAAgB,SAAS,gBAOxB;AAED,wBAAgB,aAAa,SAS5B"}
|