@forsakringskassan/vue-lib-template 1.1.0 → 1.2.0
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/files/Jenkinsfile +2 -0
- package/files/_editorconfig +3 -0
- package/files/_gitignore +3 -0
- package/files/_htmlvalidateignore +3 -0
- package/files/_prettierignore +4 -1
- package/files/api-extractor.lib.json +1 -1
- package/files/api-extractor.selectors.json +1 -1
- package/files/babel.config.js +2 -0
- package/files/cypress/support/common.ts +7 -6
- package/files/cypress/support/component.ts +5 -25
- package/files/cypress/support/main.scss +2 -0
- package/files/cypress/tsconfig.json +3 -3
- package/files/cypress.config.ts +14 -76
- package/files/docs/build.mts +2 -0
- package/files/docs/package.json +1 -1
- package/files/docs/tsconfig.json +2 -0
- package/files/eslint.config.mjs +2 -0
- package/files/package.json +12 -14
- package/files/renovate.json +1 -3
- package/files/tsconfig.cypress.json +1 -1
- package/files/tsconfig.json +1 -1
- package/files/tsconfig.lib.json +1 -1
- package/files/tsconfig.selectors.json +1 -1
- package/files/vite.config.mts +1 -1
- package/hooks/install.mjs +9 -1
- package/index.js +1 -1
- package/package.json +1 -9
- package/files/cypress/support/commands/forced-colors.ts +0 -33
- package/files/cypress/support/component-index.html +0 -14
- package/files/cypress/types/cy-mount.d.ts +0 -9
- package/files/cypress/types/forced-colors.d.ts +0 -18
package/files/Jenkinsfile
CHANGED
package/files/_editorconfig
CHANGED
package/files/_gitignore
CHANGED
package/files/_prettierignore
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* This file
|
|
1
|
+
/* This file is managed by @forsakringskassan/vue-lib-template. Changes will be overwritten! */
|
|
2
2
|
|
|
3
3
|
{
|
|
4
4
|
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* This file
|
|
1
|
+
/* This file is managed by @forsakringskassan/vue-lib-template. Changes will be overwritten! */
|
|
2
2
|
|
|
3
3
|
{
|
|
4
4
|
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
package/files/babel.config.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/* This file is managed by @forsakringskassan/vue-lib-template. Changes will be overwritten! */
|
|
2
2
|
|
|
3
|
+
import { configure } from "@forsakringskassan/cypress-config/support";
|
|
3
4
|
import "@forsakringskassan/cypress-visual-regression/commands";
|
|
4
|
-
import "@forsakringskassan/cypress-axe/support";
|
|
5
|
-
import "cypress-html-validate/dist/commands";
|
|
6
|
-
import "./commands/forced-colors";
|
|
7
5
|
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
await configure({
|
|
7
|
+
resetEmulatedMedia: true,
|
|
8
|
+
afterEach: {
|
|
9
|
+
htmlvalidate: true,
|
|
10
|
+
},
|
|
10
11
|
});
|
|
@@ -1,38 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/* This file is managed by @forsakringskassan/vue-lib-template. Changes will be overwritten! */
|
|
2
|
+
|
|
3
|
+
import { mount } from "@forsakringskassan/cypress-config/support";
|
|
3
4
|
import { injectSpritesheet } from "@fkui/icon-lib-default/dist/f/injectSpritesheet";
|
|
4
|
-
import {
|
|
5
|
-
config,
|
|
6
|
-
setRunningContext,
|
|
7
|
-
FormatPlugin,
|
|
8
|
-
TestPlugin,
|
|
9
|
-
TranslationPlugin,
|
|
10
|
-
ValidationPlugin,
|
|
11
|
-
} from "@fkui/vue";
|
|
12
5
|
import "@fkui/theme-default";
|
|
13
6
|
import "./main.scss";
|
|
14
7
|
import "./common";
|
|
15
8
|
|
|
16
|
-
config.teleportTarget = "#teleport";
|
|
17
|
-
|
|
18
9
|
Cypress.Commands.add("mount", (component, options = {}) => {
|
|
19
|
-
// Setup options object
|
|
20
10
|
options.global ??= {};
|
|
21
11
|
options.global.plugins ??= [];
|
|
22
|
-
options.global.config ??= {};
|
|
23
|
-
options.global.config.compilerOptions ??= {};
|
|
24
|
-
options.global.config.compilerOptions.whitespace = "preserve";
|
|
25
12
|
|
|
26
|
-
/*
|
|
13
|
+
/* handle warnings as errors */
|
|
27
14
|
options.global.plugins.push({
|
|
28
|
-
install(app
|
|
29
|
-
app.use(FormatPlugin);
|
|
30
|
-
app.use(ValidationPlugin);
|
|
31
|
-
app.use(TestPlugin);
|
|
32
|
-
app.use(TranslationPlugin);
|
|
33
|
-
setRunningContext(app);
|
|
34
|
-
|
|
35
|
-
/* handle warnings as errors */
|
|
15
|
+
install(app) {
|
|
36
16
|
app.config.warnHandler = (msg) => {
|
|
37
17
|
const mochaRunner = Cypress.mocha.getRunner();
|
|
38
18
|
const body = mochaRunner.test?.body ?? "";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/* This file is managed by @forsakringskassan/vue-lib-template. Changes will be overwritten! */
|
|
2
|
+
|
|
1
3
|
{
|
|
2
4
|
"extends": ["@fkui/tsconfig/recommended", "@fkui/tsconfig/cypress"],
|
|
3
5
|
"compilerOptions": {
|
|
@@ -6,10 +8,8 @@
|
|
|
6
8
|
"cypress",
|
|
7
9
|
"node",
|
|
8
10
|
"vite/client",
|
|
9
|
-
"
|
|
10
|
-
"cypress-html-validate/commands",
|
|
11
|
+
"@forsakringskassan/cypress-config/support",
|
|
11
12
|
"@forsakringskassan/cypress-visual-regression/commands",
|
|
12
|
-
"forced-colors",
|
|
13
13
|
"mocha"
|
|
14
14
|
],
|
|
15
15
|
"typeRoots": ["../node_modules", "../node_modules/@types", "./types"],
|
package/files/cypress.config.ts
CHANGED
|
@@ -1,91 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
1
|
+
/* This file is managed by @forsakringskassan/vue-lib-template. Changes will be overwritten! */
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
axePlugin,
|
|
5
|
+
defineConfig,
|
|
6
|
+
htmlValidatePlugin,
|
|
7
|
+
} from "@forsakringskassan/cypress-config";
|
|
4
8
|
import getToMatchScreenshotsPlugin from "@forsakringskassan/cypress-visual-regression/plugin";
|
|
5
|
-
import htmlvalidate, {
|
|
6
|
-
CypressHtmlValidateOptions,
|
|
7
|
-
} from "cypress-html-validate/plugin";
|
|
8
|
-
import { type ConfigData } from "html-validate";
|
|
9
9
|
|
|
10
|
-
function installPlugins(
|
|
10
|
+
async function installPlugins(
|
|
11
11
|
on: Cypress.PluginEvents,
|
|
12
12
|
config: Cypress.PluginConfigOptions,
|
|
13
|
-
): Cypress.PluginConfigOptions {
|
|
13
|
+
): Promise<Cypress.PluginConfigOptions> {
|
|
14
14
|
getToMatchScreenshotsPlugin(on, config);
|
|
15
|
-
|
|
16
|
-
config =
|
|
17
|
-
context: {
|
|
18
|
-
include: [
|
|
19
|
-
[".code-preview"],
|
|
20
|
-
["[data-preview]"],
|
|
21
|
-
["[data-cy-root]"],
|
|
22
|
-
],
|
|
23
|
-
exclude: [
|
|
24
|
-
[".calendar__item--selected"],
|
|
25
|
-
[".file-selector input"],
|
|
26
|
-
[".wizard-step__header__title"],
|
|
27
|
-
[".live-example__code"],
|
|
28
|
-
],
|
|
29
|
-
},
|
|
30
|
-
});
|
|
15
|
+
config = await axePlugin(on, config);
|
|
16
|
+
config = await htmlValidatePlugin(on, config);
|
|
31
17
|
return config;
|
|
32
18
|
}
|
|
33
19
|
|
|
34
|
-
|
|
35
|
-
rules: {
|
|
36
|
-
/* some examples show how to use custom heading levels which often
|
|
37
|
-
* doesn't match the heading outline for the documentation */
|
|
38
|
-
"heading-level": ["off"],
|
|
39
|
-
|
|
40
|
-
/* prevents mismatches from disabled rules which does not trigger errors
|
|
41
|
-
* when Cypress tests are running but would yield errors during normal
|
|
42
|
-
* validation */
|
|
43
|
-
"no-unused-disable": "off",
|
|
44
|
-
|
|
45
|
-
/* we cannot use native progressbar element due to SLA */
|
|
46
|
-
"prefer-native-element": [
|
|
47
|
-
"error",
|
|
48
|
-
{
|
|
49
|
-
exclude: ["progressbar"],
|
|
50
|
-
},
|
|
51
|
-
],
|
|
52
|
-
|
|
53
|
-
/* sadly we dont use SRI at FK */
|
|
54
|
-
"require-sri": "off",
|
|
55
|
-
},
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
const htmlValidateOptions: CypressHtmlValidateOptions = {
|
|
59
|
-
include: [
|
|
60
|
-
/* Cypress component tests */
|
|
61
|
-
"#__cy_vue_root > div",
|
|
62
|
-
],
|
|
63
|
-
exclude,
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export default defineConfig({
|
|
67
|
-
allowCypressEnv: false,
|
|
20
|
+
export default defineConfig(import.meta.dirname, {
|
|
68
21
|
// Cypress may sometimes restart tests when it detects a changed file in the __screenshot__ folder.
|
|
69
22
|
watchForFileChanges: false,
|
|
70
|
-
/* disable video recording, it is to slow both on remote machines and on
|
|
71
|
-
* CI/CD testing. */
|
|
72
|
-
video: false,
|
|
73
|
-
reporter: require.resolve("mocha-multi-reporters"),
|
|
74
|
-
reporterOptions: {
|
|
75
|
-
reporterEnabled: "spec, mocha-junit-reporter",
|
|
76
|
-
mochaJunitReporterReporterOptions: {
|
|
77
|
-
mochaFile: "test-results/cypress-test-output_[hash].xml",
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
23
|
component: {
|
|
81
|
-
setupNodeEvents(on, config) {
|
|
82
|
-
return installPlugins(on, config);
|
|
83
|
-
},
|
|
84
|
-
devServer: {
|
|
85
|
-
framework: "vue",
|
|
86
|
-
bundler: "vite",
|
|
24
|
+
async setupNodeEvents(on, config) {
|
|
25
|
+
return await installPlugins(on, config);
|
|
87
26
|
},
|
|
88
|
-
excludeSpecPattern: ["temp/**"], // cloneman puts cy-files in temp folder during build
|
|
89
27
|
},
|
|
90
28
|
defaultBrowser: "chrome",
|
|
91
29
|
hosts: { localhost: "127.0.0.1" },
|
package/files/docs/build.mts
CHANGED
package/files/docs/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"@fkui/icon-lib-default": "6.57.1",
|
|
11
11
|
"@fkui/vue": "6.57.1",
|
|
12
|
-
"@forsakringskassan/apimock-express": "4.
|
|
12
|
+
"@forsakringskassan/apimock-express": "4.1.0",
|
|
13
13
|
"@forsakringskassan/docs-generator": "3.6.4",
|
|
14
14
|
"@tsconfig/node24": "24.0.5",
|
|
15
15
|
"@tsconfig/recommended": "1.0.13",
|
package/files/docs/tsconfig.json
CHANGED
package/files/eslint.config.mjs
CHANGED
package/files/package.json
CHANGED
|
@@ -86,44 +86,42 @@
|
|
|
86
86
|
"@fkui/test-utils": "6.57.1",
|
|
87
87
|
"@fkui/theme-default": "6.57.1",
|
|
88
88
|
"@fkui/vue": "6.57.1",
|
|
89
|
-
"@forsakringskassan/apimock-express": "4.
|
|
89
|
+
"@forsakringskassan/apimock-express": "4.1.0",
|
|
90
90
|
"@forsakringskassan/commitlint-config": "4.2.8",
|
|
91
|
-
"@forsakringskassan/cypress-
|
|
91
|
+
"@forsakringskassan/cypress-config": "1.9.1",
|
|
92
92
|
"@forsakringskassan/cypress-visual-regression": "5.2.0",
|
|
93
93
|
"@forsakringskassan/docs-generator": "3.6.4",
|
|
94
94
|
"@forsakringskassan/docs-live-example": "3.0.2",
|
|
95
|
-
"@forsakringskassan/eslint-config": "15.9.
|
|
95
|
+
"@forsakringskassan/eslint-config": "15.9.7",
|
|
96
96
|
"@forsakringskassan/eslint-config-cli": "15.9.3",
|
|
97
|
-
"@forsakringskassan/eslint-config-cypress": "15.9.
|
|
97
|
+
"@forsakringskassan/eslint-config-cypress": "15.9.9",
|
|
98
98
|
"@forsakringskassan/eslint-config-jest": "15.9.2",
|
|
99
|
-
"@forsakringskassan/eslint-config-typescript": "15.9.
|
|
100
|
-
"@forsakringskassan/eslint-config-typescript-typeinfo": "15.9.
|
|
99
|
+
"@forsakringskassan/eslint-config-typescript": "15.9.8",
|
|
100
|
+
"@forsakringskassan/eslint-config-typescript-typeinfo": "15.9.8",
|
|
101
101
|
"@forsakringskassan/eslint-config-vitest": "15.9.4",
|
|
102
|
-
"@forsakringskassan/eslint-config-vue": "15.9.
|
|
102
|
+
"@forsakringskassan/eslint-config-vue": "15.9.8",
|
|
103
103
|
"@forsakringskassan/prettier-config": "3.7.8",
|
|
104
104
|
"@forsakringskassan/stylelint-config": "3.4.6",
|
|
105
|
-
"@forsakringskassan/vite-lib-config": "5.11.
|
|
105
|
+
"@forsakringskassan/vite-lib-config": "5.11.1",
|
|
106
106
|
"@forsakringskassan/vitest-config-jsdom": "5.0.0",
|
|
107
|
-
"@forsakringskassan/vue-lib-template": "1.
|
|
107
|
+
"@forsakringskassan/vue-lib-template": "1.2.0",
|
|
108
108
|
"@html-validate/release-scripts": "7.6.11",
|
|
109
|
-
"@types/node": "24.13.
|
|
109
|
+
"@types/node": "24.13.4",
|
|
110
110
|
"@typescript/native": "npm:typescript@7.0.2",
|
|
111
111
|
"@vue/server-renderer": "3.5.42",
|
|
112
112
|
"@vue/test-utils": "2.5.0",
|
|
113
113
|
"cloneman": "1.23.1",
|
|
114
114
|
"core-js": "3.50.0",
|
|
115
115
|
"cypress": "16.0.0",
|
|
116
|
-
"
|
|
117
|
-
"html-validate": "11.14.0",
|
|
116
|
+
"html-validate": "11.15.0",
|
|
118
117
|
"html-validate-markdown": "6.0.0",
|
|
119
118
|
"html-validate-vue": "9.3.1",
|
|
120
119
|
"mocha-junit-reporter": "2.2.1",
|
|
121
|
-
"mocha-multi-reporters": "1.5.1",
|
|
122
120
|
"npm-pkg-lint": "5.2.5",
|
|
123
121
|
"npm-run-all2": "9.0.3",
|
|
124
122
|
"rimraf": "6.1.3",
|
|
125
123
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
126
|
-
"vite": "8.
|
|
124
|
+
"vite": "8.3.0",
|
|
127
125
|
"vitest": "5.0.0",
|
|
128
126
|
"vue": "3.5.42",
|
|
129
127
|
"vue-tsc": "3.3.11"
|
package/files/renovate.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"@babel/preset-env",
|
|
6
6
|
"@forsakringskassan/apimock-express",
|
|
7
7
|
"@forsakringskassan/commitlint-config",
|
|
8
|
-
"@forsakringskassan/cypress-
|
|
8
|
+
"@forsakringskassan/cypress-config",
|
|
9
9
|
"@forsakringskassan/cypress-visual-regression",
|
|
10
10
|
"@forsakringskassan/docs-generator",
|
|
11
11
|
"@forsakringskassan/docs-live-example",
|
|
@@ -29,12 +29,10 @@
|
|
|
29
29
|
"cloneman",
|
|
30
30
|
"core-js",
|
|
31
31
|
"cypress",
|
|
32
|
-
"cypress-html-validate",
|
|
33
32
|
"html-validate",
|
|
34
33
|
"html-validate-markdown",
|
|
35
34
|
"html-validate-vue",
|
|
36
35
|
"mocha-junit-reporter",
|
|
37
|
-
"mocha-multi-reporters",
|
|
38
36
|
"npm-pkg-lint",
|
|
39
37
|
"npm-run-all2",
|
|
40
38
|
"rimraf",
|
package/files/tsconfig.json
CHANGED
package/files/tsconfig.lib.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* This file
|
|
1
|
+
/* This file is managed by @forsakringskassan/vue-lib-template. Changes will be overwritten! */
|
|
2
2
|
|
|
3
3
|
{
|
|
4
4
|
"extends": "@forsakringskassan/vite-lib-config/tsconfig.selectors.json"
|
package/files/vite.config.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* This file
|
|
1
|
+
/* This file is managed by @forsakringskassan/vue-lib-template. Changes will be overwritten! */
|
|
2
2
|
|
|
3
3
|
import { defineConfig } from "@forsakringskassan/vite-lib-config/vite";
|
|
4
4
|
import { defineTestConfig } from "@forsakringskassan/vitest-config-jsdom";
|
package/hooks/install.mjs
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* @param {import("cloneman").InstallContext} context
|
|
3
3
|
*/
|
|
4
4
|
export default async (context) => {
|
|
5
|
-
const { getParameter, updateJsonFile } =
|
|
5
|
+
const { getParameter, updateJsonFile, getApplicationName, replaceInFile } =
|
|
6
|
+
context;
|
|
6
7
|
|
|
7
8
|
/* write repository url to "package.json" */
|
|
8
9
|
const repoUrl = getParameter("repo-url");
|
|
@@ -12,4 +13,11 @@ export default async (context) => {
|
|
|
12
13
|
url: repoUrl,
|
|
13
14
|
},
|
|
14
15
|
});
|
|
16
|
+
|
|
17
|
+
/* update placeholder names with the real application name (from package.json) */
|
|
18
|
+
const name = getApplicationName;
|
|
19
|
+
const placeholder = "@forsakringskassan/vue-lib-template";
|
|
20
|
+
await replaceInFile("tsconfig.lib.json", placeholder, name);
|
|
21
|
+
await replaceInFile("tsconfig.cypress.json", placeholder, name);
|
|
22
|
+
await replaceInFile("tsconfig.selectors.json", placeholder, name);
|
|
15
23
|
};
|
package/index.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
const options = {
|
|
9
9
|
...packageJson.cloneman,
|
|
10
|
-
fileHash: "
|
|
10
|
+
fileHash: "36c8f49330d6acb55faacab6e563150ce680f321673ee1d5989144b469ef7839",
|
|
11
11
|
filesDir: path.join(import.meta.dirname, "files"),
|
|
12
12
|
hooksDir: path.join(import.meta.dirname, "hooks"),
|
|
13
13
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forsakringskassan/vue-lib-template",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Vue library template based on Cloneman",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"template",
|
|
@@ -40,14 +40,10 @@
|
|
|
40
40
|
"CODEOWNERS",
|
|
41
41
|
"cypress.config.ts",
|
|
42
42
|
"cypress/fixtures/example.json",
|
|
43
|
-
"cypress/support/commands/forced-colors.ts",
|
|
44
43
|
"cypress/support/common.ts",
|
|
45
|
-
"cypress/support/component-index.html",
|
|
46
44
|
"cypress/support/component.ts",
|
|
47
45
|
"cypress/support/main.scss",
|
|
48
46
|
"cypress/tsconfig.json",
|
|
49
|
-
"cypress/types/cy-mount.d.ts",
|
|
50
|
-
"cypress/types/forced-colors.d.ts",
|
|
51
47
|
"cypress/types/mocha.d.ts",
|
|
52
48
|
"docs/build.mts",
|
|
53
49
|
"docs/index.md",
|
|
@@ -108,14 +104,10 @@
|
|
|
108
104
|
"babel.config.js",
|
|
109
105
|
"cypress.config.ts",
|
|
110
106
|
"cypress/fixtures/example.json",
|
|
111
|
-
"cypress/support/commands/forced-colors.ts",
|
|
112
107
|
"cypress/support/common.ts",
|
|
113
|
-
"cypress/support/component-index.html",
|
|
114
108
|
"cypress/support/component.ts",
|
|
115
109
|
"cypress/support/main.scss",
|
|
116
110
|
"cypress/tsconfig.json",
|
|
117
|
-
"cypress/types/cy-mount.d.ts",
|
|
118
|
-
"cypress/types/forced-colors.d.ts",
|
|
119
111
|
"cypress/types/mocha.d.ts",
|
|
120
112
|
"docs/build.mts",
|
|
121
113
|
"docs/package.json",
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/// <reference types="cypress" />
|
|
2
|
-
|
|
3
|
-
export type ForcedColorMode = "none" | "dark" | "light";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Custom Cypress command for testing with forced colors mode
|
|
7
|
-
* Forces the browser to use forced colors prefers-color-scheme media query
|
|
8
|
-
*/
|
|
9
|
-
Cypress.Commands.add("forcedColors", (mode: ForcedColorMode) => {
|
|
10
|
-
const cdpCommand = "Emulation.setEmulatedMedia";
|
|
11
|
-
const media = "forced-colors";
|
|
12
|
-
|
|
13
|
-
const features =
|
|
14
|
-
mode === "none"
|
|
15
|
-
? [{ name: media, value: "none" }]
|
|
16
|
-
: [
|
|
17
|
-
{ name: media, value: "active" },
|
|
18
|
-
{
|
|
19
|
-
name: "prefers-color-scheme",
|
|
20
|
-
value: mode,
|
|
21
|
-
},
|
|
22
|
-
];
|
|
23
|
-
|
|
24
|
-
cy.then(() => {
|
|
25
|
-
return Cypress.automation("remote:debugger:protocol", {
|
|
26
|
-
command: cdpCommand,
|
|
27
|
-
params: {
|
|
28
|
-
media,
|
|
29
|
-
features,
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
}).window();
|
|
33
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
6
|
-
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
|
7
|
-
<title>Components App</title>
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
<div data-cy-root>
|
|
11
|
-
<div id="teleport"></div>
|
|
12
|
-
</div>
|
|
13
|
-
</body>
|
|
14
|
-
</html>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="cypress" />
|
|
2
|
-
|
|
3
|
-
declare global {
|
|
4
|
-
namespace Cypress {
|
|
5
|
-
interface Chainable {
|
|
6
|
-
/**
|
|
7
|
-
* Forces the application to run in forced colors mode
|
|
8
|
-
* @param mode - "light" or "dark" color mode, "none" will disable the forced colors
|
|
9
|
-
* @example cy.forcedColors("dark")
|
|
10
|
-
*/
|
|
11
|
-
forcedColors(
|
|
12
|
-
mode: "none" | "dark" | "light",
|
|
13
|
-
): Cypress.Chainable<void>;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export {};
|