@equinor/fusion-framework-vitest-plugin-react-app 0.2.0-next.0 → 0.2.0-next.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/CHANGELOG.md +14 -0
- package/dist/esm/define-project.js +6 -1
- package/dist/esm/define-project.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/define-project.d.ts +3 -1
- package/dist/types/version.d.ts +1 -1
- package/docs/configuration.md +4 -1
- package/docs/why-browser-mode.md +22 -7
- package/package.json +4 -4
- package/src/define-project.ts +6 -1
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @equinor/fusion-framework-vitest-plugin-react-app
|
|
2
2
|
|
|
3
|
+
## 0.2.0-next.2
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 7cdd512: `defineProject` now defaults `test.browser.viewport` to `1024x768` instead of Vitest's own
|
|
8
|
+
mobile-sized default, matching the low, fixed resolution most Fusion apps see in production
|
|
9
|
+
through Citrix. Pass `test.browser.viewport` to `defineProject` to use a different size.
|
|
10
|
+
|
|
11
|
+
## 0.2.0-next.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- @equinor/fusion-framework-cli@15.2.8-next.1
|
|
16
|
+
|
|
3
17
|
## 0.2.0-next.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -11,7 +11,9 @@ import { appTestVitePlugin } from './index.js';
|
|
|
11
11
|
* Drop-in replacement for Vitest's own `defineProject` — same `export default`, just pre-wired.
|
|
12
12
|
* Playwright/`chromium` is only the *default* — pass `override` to change or replace anything
|
|
13
13
|
* (e.g. `test.name`, or swap `test.browser.provider` for a different `@vitest/browser-*`
|
|
14
|
-
* provider) without hand-rolling `appTestVitePlugin`'s own wiring.
|
|
14
|
+
* provider) without hand-rolling `appTestVitePlugin`'s own wiring. The default `1024x768`
|
|
15
|
+
* viewport matches a typical low-resolution Citrix session rather than Vitest's own
|
|
16
|
+
* mobile-sized default; pass `test.browser.viewport` to use a different size.
|
|
15
17
|
*
|
|
16
18
|
* @example
|
|
17
19
|
* ```ts
|
|
@@ -42,6 +44,9 @@ export const defineProject = (override) => {
|
|
|
42
44
|
enabled: true,
|
|
43
45
|
provider: playwright(),
|
|
44
46
|
headless: true,
|
|
47
|
+
// most users run the app through Citrix at a low, fixed resolution rather than a
|
|
48
|
+
// resizable desktop window — default to that instead of Vitest's own mobile-sized viewport
|
|
49
|
+
viewport: { width: 1024, height: 768 },
|
|
45
50
|
instances: [{ browser: 'chromium' }],
|
|
46
51
|
},
|
|
47
52
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define-project.js","sourceRoot":"","sources":["../../src/define-project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EACL,aAAa,IAAI,mBAAmB,EACpC,WAAW,GAEZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAW/C
|
|
1
|
+
{"version":3,"file":"define-project.js","sourceRoot":"","sources":["../../src/define-project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EACL,aAAa,IAAI,mBAAmB,EACpC,WAAW,GAEZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAW/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,QAAgC,EAAuB,EAAE;IACrF,MAAM,QAAQ,GAAwB;QACpC,OAAO,EAAE,CAAC,iBAAiB,EAAE,CAAC;QAC9B,IAAI,EAAE;YACJ,OAAO,EAAE,CA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