@analogjs/vitest-angular 1.8.0 → 1.8.1-beta.2
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/README.md +38 -5
- package/package.json +3 -2
- package/setup-snapshots.d.ts +26 -0
- package/setup-snapshots.js +104 -0
- package/setup-snapshots.js.map +1 -0
- package/setup-zone.d.ts +1 -0
- package/setup-zone.js +1 -101
- package/setup-zone.js.map +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
A standalone builder for running tests with Vitest and Angular.
|
|
4
4
|
|
|
5
|
+
## Supporting Analog
|
|
6
|
+
|
|
7
|
+
- Star the [GitHub Repo](https://github.com/analogjs/analog)
|
|
8
|
+
- Join the [Discord](https://chat.analogjs.org)
|
|
9
|
+
- Follow us on [Twitter](https://twitter.com/analogjs)
|
|
10
|
+
- Become a [Sponsor](https://analogjs.org/docs/sponsoring)
|
|
11
|
+
|
|
5
12
|
## Installation
|
|
6
13
|
|
|
7
14
|
Use your package manager of choice to install the necessary packages.
|
|
@@ -92,6 +99,23 @@ getTestBed().initTestEnvironment(
|
|
|
92
99
|
);
|
|
93
100
|
```
|
|
94
101
|
|
|
102
|
+
If you are using `Zoneless` change detection, only import the `setup-snapshots` script.
|
|
103
|
+
|
|
104
|
+
```ts
|
|
105
|
+
import '@analogjs/vitest-angular/setup-snapshots';
|
|
106
|
+
|
|
107
|
+
import {
|
|
108
|
+
BrowserDynamicTestingModule,
|
|
109
|
+
platformBrowserDynamicTesting,
|
|
110
|
+
} from '@angular/platform-browser-dynamic/testing';
|
|
111
|
+
import { getTestBed } from '@angular/core/testing';
|
|
112
|
+
|
|
113
|
+
getTestBed().initTestEnvironment(
|
|
114
|
+
BrowserDynamicTestingModule,
|
|
115
|
+
platformBrowserDynamicTesting()
|
|
116
|
+
);
|
|
117
|
+
```
|
|
118
|
+
|
|
95
119
|
Next, update the `test` target in the `angular.json` to use the `@analogjs/vitest-angular:test` builder:
|
|
96
120
|
|
|
97
121
|
```json
|
|
@@ -230,9 +254,18 @@ export default defineConfig(({ mode }) => ({
|
|
|
230
254
|
}));
|
|
231
255
|
```
|
|
232
256
|
|
|
233
|
-
|
|
257
|
+
### With Nx
|
|
234
258
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
259
|
+
For Nx workspaces, import and use the `nxViteTsPaths` plugin from the `@nx/vite` package.
|
|
260
|
+
|
|
261
|
+
```ts
|
|
262
|
+
/// <reference types="vitest" />
|
|
263
|
+
import { defineConfig } from 'vite';
|
|
264
|
+
|
|
265
|
+
import angular from '@analogjs/vite-plugin-angular';
|
|
266
|
+
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
|
|
267
|
+
|
|
268
|
+
export default defineConfig(({ mode }) => ({
|
|
269
|
+
plugins: [angular(), nxViteTsPaths()],
|
|
270
|
+
}));
|
|
271
|
+
```
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@analogjs/vitest-angular",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.1-beta.2",
|
|
4
4
|
"description": "Vitest Builder for Angular",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"author": "Brandon Roberts <robertsbt@gmail.com>",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": "./src/index.js",
|
|
9
9
|
"./package.json": "./package.json",
|
|
10
|
-
"./setup-zone": "./setup-zone.js"
|
|
10
|
+
"./setup-zone": "./setup-zone.js",
|
|
11
|
+
"./setup-snapshots": "./setup-snapshots.js"
|
|
11
12
|
},
|
|
12
13
|
"keywords": [
|
|
13
14
|
"angular",
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare const env: any;
|
|
2
|
+
/**
|
|
3
|
+
* Allows Vitest to handle Angular test fixtures
|
|
4
|
+
*
|
|
5
|
+
* Vitest Snapshot guide ==> https://vitest.dev/guide/snapshot.html
|
|
6
|
+
*
|
|
7
|
+
* @returns customSnapshotSerializer for Angular Fixture Component
|
|
8
|
+
*/
|
|
9
|
+
declare const customSnapshotSerializer: () => {
|
|
10
|
+
serialize: (val: any, config: any, indentation: any, depth: any, refs: any, printer: any) => string;
|
|
11
|
+
test: (val: any) => boolean;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Check if is an Angular fixture
|
|
15
|
+
*
|
|
16
|
+
* @param val Angular fixture
|
|
17
|
+
* @returns boolean who check if is an angular fixture
|
|
18
|
+
*/
|
|
19
|
+
declare function isAngularFixture(val: any): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Serialize Angular fixture for Vitest
|
|
22
|
+
*
|
|
23
|
+
* @param fixture Angular Fixture Component
|
|
24
|
+
* @returns HTML Child Node
|
|
25
|
+
*/
|
|
26
|
+
declare function fixtureVitestSerializer(fixture: any): ChildNode;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const env = globalThis;
|
|
3
|
+
/**
|
|
4
|
+
* Allows Vitest to handle Angular test fixtures
|
|
5
|
+
*
|
|
6
|
+
* Vitest Snapshot guide ==> https://vitest.dev/guide/snapshot.html
|
|
7
|
+
*
|
|
8
|
+
* @returns customSnapshotSerializer for Angular Fixture Component
|
|
9
|
+
*/
|
|
10
|
+
const customSnapshotSerializer = () => {
|
|
11
|
+
function serialize(val, config, indentation, depth, refs, printer) {
|
|
12
|
+
// `printer` is a function that serializes a value using existing plugins.
|
|
13
|
+
return `${printer(fixtureVitestSerializer(val), config, indentation, depth, refs)}`;
|
|
14
|
+
}
|
|
15
|
+
function test(val) {
|
|
16
|
+
// * If it's a ComponentFixture we apply the transformation rules
|
|
17
|
+
return val && isAngularFixture(val);
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
20
|
+
serialize,
|
|
21
|
+
test,
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Check if is an Angular fixture
|
|
26
|
+
*
|
|
27
|
+
* @param val Angular fixture
|
|
28
|
+
* @returns boolean who check if is an angular fixture
|
|
29
|
+
*/
|
|
30
|
+
function isAngularFixture(val) {
|
|
31
|
+
if (typeof val !== 'object') {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
if (val['componentRef'] || val['componentInstance']) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
if (val['componentType']) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
// * Angular fixture keys in Fixture component Object
|
|
41
|
+
const fixtureKeys = [
|
|
42
|
+
'componentRef',
|
|
43
|
+
'ngZone',
|
|
44
|
+
'effectRunner',
|
|
45
|
+
'_autoDetect',
|
|
46
|
+
'_isStable',
|
|
47
|
+
'_isDestroyed',
|
|
48
|
+
'_resolve',
|
|
49
|
+
'_promise',
|
|
50
|
+
'_onUnstableSubscription',
|
|
51
|
+
'_onStableSubscription',
|
|
52
|
+
'_onMicrotaskEmptySubscription',
|
|
53
|
+
'_onErrorSubscription',
|
|
54
|
+
'changeDetectorRef',
|
|
55
|
+
'elementRef',
|
|
56
|
+
'debugElement',
|
|
57
|
+
'componentInstance',
|
|
58
|
+
'nativeElement',
|
|
59
|
+
];
|
|
60
|
+
// * Angular fixture keys in Fixture componentRef Object
|
|
61
|
+
const fixtureComponentRefKeys = [
|
|
62
|
+
'location',
|
|
63
|
+
'_rootLView',
|
|
64
|
+
'_tNode',
|
|
65
|
+
'previousInputValues',
|
|
66
|
+
'instance',
|
|
67
|
+
'changeDetectorRef',
|
|
68
|
+
'hostView',
|
|
69
|
+
'componentType',
|
|
70
|
+
];
|
|
71
|
+
return (JSON.stringify(Object.keys(val)) === JSON.stringify(fixtureKeys) ||
|
|
72
|
+
JSON.stringify(Object.keys(val)) === JSON.stringify(fixtureComponentRefKeys));
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Serialize Angular fixture for Vitest
|
|
76
|
+
*
|
|
77
|
+
* @param fixture Angular Fixture Component
|
|
78
|
+
* @returns HTML Child Node
|
|
79
|
+
*/
|
|
80
|
+
function fixtureVitestSerializer(fixture) {
|
|
81
|
+
// * Get Component meta data
|
|
82
|
+
const componentType = (fixture && fixture.componentType
|
|
83
|
+
? fixture.componentType
|
|
84
|
+
: fixture.componentRef.componentType);
|
|
85
|
+
let inputsData = '';
|
|
86
|
+
const selector = Reflect.getOwnPropertyDescriptor(componentType, '__annotations__')?.value[0].selector;
|
|
87
|
+
if (componentType && componentType.propDecorators) {
|
|
88
|
+
inputsData = Object.entries(componentType.propDecorators)
|
|
89
|
+
.map(([key, value]) => `${key}="${value}"`)
|
|
90
|
+
.join('');
|
|
91
|
+
}
|
|
92
|
+
// * Get DOM Elements
|
|
93
|
+
const divElement = fixture && fixture.nativeElement
|
|
94
|
+
? fixture.nativeElement
|
|
95
|
+
: fixture.location.nativeElement;
|
|
96
|
+
// * Convert string data to HTML data
|
|
97
|
+
const doc = new DOMParser().parseFromString(`<${selector} ${inputsData}>${divElement.innerHTML}</${selector}>`, 'text/html');
|
|
98
|
+
return doc.body.childNodes[0];
|
|
99
|
+
}
|
|
100
|
+
['expect'].forEach((methodName) => {
|
|
101
|
+
const originalvitestFn = env[methodName];
|
|
102
|
+
return originalvitestFn.addSnapshotSerializer(customSnapshotSerializer());
|
|
103
|
+
});
|
|
104
|
+
//# sourceMappingURL=setup-snapshots.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup-snapshots.js","sourceRoot":"","sources":["../../../packages/vitest-angular/setup-snapshots.ts"],"names":[],"mappings":";AAAA,MAAM,GAAG,GAAG,UAAiB,CAAC;AAE9B;;;;;;GAMG;AACH,MAAM,wBAAwB,GAAG,GAAG,EAAE;IACpC,SAAS,SAAS,CAChB,GAAQ,EACR,MAAW,EACX,WAAgB,EAChB,KAAU,EACV,IAAS,EACT,OAAY;QAEZ,0EAA0E;QAC1E,OAAO,GAAG,OAAO,CACf,uBAAuB,CAAC,GAAG,CA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AAgB,CAAC,qBAAqB,CAAC,wBAAwB,EAAE,CAAC,CAAC;AAC5E,CAAC,CAAC,CAAC"}
|
package/setup-zone.d.ts
CHANGED
package/setup-zone.js
CHANGED
|
@@ -4,6 +4,7 @@ require("zone.js");
|
|
|
4
4
|
require("zone.js/plugins/sync-test");
|
|
5
5
|
require("zone.js/plugins/proxy");
|
|
6
6
|
require("zone.js/testing");
|
|
7
|
+
require("./setup-snapshots.js");
|
|
7
8
|
/**
|
|
8
9
|
* Patch Vitest's describe/test/beforeEach/afterEach functions so test code
|
|
9
10
|
* always runs in a testZone (ProxyZone).
|
|
@@ -61,103 +62,6 @@ function wrapTestInZone(testBody) {
|
|
|
61
62
|
}
|
|
62
63
|
return wrappedFunc;
|
|
63
64
|
}
|
|
64
|
-
/**
|
|
65
|
-
* Allows Vitest to handle Angular test fixtures
|
|
66
|
-
*
|
|
67
|
-
* Vitest Snapshot guide ==> https://vitest.dev/guide/snapshot.html
|
|
68
|
-
*
|
|
69
|
-
* @returns customSnapshotSerializer for Angular Fixture Component
|
|
70
|
-
*/
|
|
71
|
-
const customSnapshotSerializer = () => {
|
|
72
|
-
function serialize(val, config, indentation, depth, refs, printer) {
|
|
73
|
-
// `printer` is a function that serializes a value using existing plugins.
|
|
74
|
-
return `${printer(fixtureVitestSerializer(val), config, indentation, depth, refs)}`;
|
|
75
|
-
}
|
|
76
|
-
function test(val) {
|
|
77
|
-
// * If it's a ComponentFixture we apply the transformation rules
|
|
78
|
-
return val && isAngularFixture(val);
|
|
79
|
-
}
|
|
80
|
-
return {
|
|
81
|
-
serialize,
|
|
82
|
-
test,
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* Check if is an Angular fixture
|
|
87
|
-
*
|
|
88
|
-
* @param val Angular fixture
|
|
89
|
-
* @returns boolean who check if is an angular fixture
|
|
90
|
-
*/
|
|
91
|
-
function isAngularFixture(val) {
|
|
92
|
-
if (typeof val !== 'object') {
|
|
93
|
-
return false;
|
|
94
|
-
}
|
|
95
|
-
if (val['componentRef'] || val['componentInstance']) {
|
|
96
|
-
return true;
|
|
97
|
-
}
|
|
98
|
-
if (val['componentType']) {
|
|
99
|
-
return true;
|
|
100
|
-
}
|
|
101
|
-
// * Angular fixture keys in Fixture component Object
|
|
102
|
-
const fixtureKeys = [
|
|
103
|
-
'componentRef',
|
|
104
|
-
'ngZone',
|
|
105
|
-
'effectRunner',
|
|
106
|
-
'_autoDetect',
|
|
107
|
-
'_isStable',
|
|
108
|
-
'_isDestroyed',
|
|
109
|
-
'_resolve',
|
|
110
|
-
'_promise',
|
|
111
|
-
'_onUnstableSubscription',
|
|
112
|
-
'_onStableSubscription',
|
|
113
|
-
'_onMicrotaskEmptySubscription',
|
|
114
|
-
'_onErrorSubscription',
|
|
115
|
-
'changeDetectorRef',
|
|
116
|
-
'elementRef',
|
|
117
|
-
'debugElement',
|
|
118
|
-
'componentInstance',
|
|
119
|
-
'nativeElement',
|
|
120
|
-
];
|
|
121
|
-
// * Angular fixture keys in Fixture componentRef Object
|
|
122
|
-
const fixtureComponentRefKeys = [
|
|
123
|
-
'location',
|
|
124
|
-
'_rootLView',
|
|
125
|
-
'_tNode',
|
|
126
|
-
'previousInputValues',
|
|
127
|
-
'instance',
|
|
128
|
-
'changeDetectorRef',
|
|
129
|
-
'hostView',
|
|
130
|
-
'componentType',
|
|
131
|
-
];
|
|
132
|
-
return (JSON.stringify(Object.keys(val)) === JSON.stringify(fixtureKeys) ||
|
|
133
|
-
JSON.stringify(Object.keys(val)) === JSON.stringify(fixtureComponentRefKeys));
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Serialize Angular fixture for Vitest
|
|
137
|
-
*
|
|
138
|
-
* @param fixture Angular Fixture Component
|
|
139
|
-
* @returns HTML Child Node
|
|
140
|
-
*/
|
|
141
|
-
function fixtureVitestSerializer(fixture) {
|
|
142
|
-
// * Get Component meta data
|
|
143
|
-
const componentType = (fixture && fixture.componentType
|
|
144
|
-
? fixture.componentType
|
|
145
|
-
: fixture.componentRef.componentType);
|
|
146
|
-
let inputsData = '';
|
|
147
|
-
const selector = Reflect.getOwnPropertyDescriptor(componentType, '__annotations__')?.value[0].selector;
|
|
148
|
-
if (componentType && componentType.propDecorators) {
|
|
149
|
-
inputsData = Object.entries(componentType.propDecorators)
|
|
150
|
-
.map(([key, value]) => `${key}="${value}"`)
|
|
151
|
-
.join('');
|
|
152
|
-
}
|
|
153
|
-
// * Get DOM Elements
|
|
154
|
-
const divElement = fixture && fixture.nativeElement
|
|
155
|
-
? fixture.nativeElement
|
|
156
|
-
: fixture.location.nativeElement;
|
|
157
|
-
// * Convert string data to HTML data
|
|
158
|
-
const doc = new DOMParser().parseFromString(`<${selector} ${inputsData}>${divElement.innerHTML}</${selector}>`, 'text/html');
|
|
159
|
-
return doc.body.childNodes[0];
|
|
160
|
-
}
|
|
161
65
|
/**
|
|
162
66
|
* bind describe method to wrap describe.each function
|
|
163
67
|
*/
|
|
@@ -212,8 +116,4 @@ const bindTest = (self, originalVitestFn) => function (...eachArgs) {
|
|
|
212
116
|
return originalvitestFn.apply(this, args);
|
|
213
117
|
};
|
|
214
118
|
});
|
|
215
|
-
['expect'].forEach((methodName) => {
|
|
216
|
-
const originalvitestFn = env[methodName];
|
|
217
|
-
return originalvitestFn.addSnapshotSerializer(customSnapshotSerializer());
|
|
218
|
-
});
|
|
219
119
|
//# sourceMappingURL=setup-zone.js.map
|
package/setup-zone.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-zone.js","sourceRoot":"","sources":["../../../packages/vitest-angular/setup-zone.ts"],"names":[],"mappings":";;AAAA,mBAAiB;AACjB,qCAAmC;AACnC,iCAA+B;AAC/B,2BAAyB;AAEzB;;;GAGG;AACH,iBAAiB;AACjB,MAAM,IAAI,GAAI,UAAkB,CAAC,MAAM,CAAC,CAAC;AAEzC,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;IACvB,MAAM,IAAI,KAAK,C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