@genesislcap/foundation-header 14.30.3 → 14.32.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-header",
3
3
  "description": "Genesis Foundation Header",
4
- "version": "14.30.3",
4
+ "version": "14.32.0",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/foundation-header.d.ts",
@@ -29,51 +29,35 @@
29
29
  "./package.json": "./package.json"
30
30
  },
31
31
  "scripts": {
32
- "build": "genx build",
33
- "build:webpack": "genx build -b webpack",
34
- "build:webpack:stats": "genx analyze -b webpack",
32
+ "build": "genx build -b ts",
33
+ "build:webpack": "genx build",
34
+ "build:webpack:stats": "genx analyze",
35
35
  "clean": "genx clean",
36
36
  "dev": "npm run dev:webpack",
37
- "dev:no-open": "npm run dev:webpack -- --no-open",
38
- "dev:webpack": "genx dev -b webpack",
39
- "dev:webpack:https": "npm run dev:webpack -- --https",
37
+ "dev:no-open": "genx dev --no-open",
38
+ "dev:webpack": "genx dev",
39
+ "dev:webpack:https": "genx dev --https",
40
40
  "serve": "genx serve",
41
- "test": "npm run test:unit",
42
- "test:coverage": "c8 --include=src npm run test:unit",
43
- "test:coverage:report": "npm run test:coverage && c8 report --reporter=text-lcov > coverage.lcov",
44
- "test:coverage:report:nyc": "npm run test:unit:browser -- --cov && npx nyc report --reporter=html",
45
- "test:e2e": "npx playwright test --config=./playwright.config.ts",
46
- "test:e2e:debug": "npm run test:e2e -- --debug",
47
- "test:e2e:ui": "npx playwright test --ui --config=./playwright.config.ts",
48
- "test:unit": "npm run test:unit:node",
49
- "test:unit:browser": "playwright-test \"./**/*.test.ts\" --runner uvu",
50
- "test:unit:browser:watch": "npm run test:unit:browser -- -w -d",
51
- "test:unit:node": "npm run test:unit:node:src && npm run test:unit:node:test",
52
- "test:unit:node:src": "uvu -r tsm -r esm -r ./jsdom.setup.ts ./src \".*.test.ts\"",
53
- "test:unit:node:test": "uvu -r tsm -r esm -r ./jsdom.setup.ts ./test/unit \".*.test.ts\"",
54
- "test:unit:watch": "watchlist src test -- npm run test:unit"
41
+ "test": "genx test",
42
+ "test:coverage": "genx test --coverage",
43
+ "test:coverage:browser": "genx test --coverage --browser",
44
+ "test:e2e": "genx test --e2e",
45
+ "test:e2e:debug": "genx test --e2e --debug",
46
+ "test:e2e:ui": "genx test --e2e --interactive",
47
+ "test:unit:browser": "genx test --browser",
48
+ "test:unit:browser:watch": "genx test --browser --watch",
49
+ "test:unit:watch": "genx test --watch",
50
+ "test:debug": "genx test --debug"
55
51
  },
56
52
  "devDependencies": {
57
- "@genesislcap/foundation-testing": "^14.30.3",
58
- "@genesislcap/genx": "^14.30.3",
59
- "@playwright/test": "^1.18.1",
60
- "c8": "^7.11.0",
61
- "cross-env": "^7.0.3",
62
- "esm": "^3.2.25",
63
- "jsdom": "^19.0.0",
64
- "lighthouse": "^9.6.8",
65
- "playwright-lighthouse": "^2.2.2",
66
- "playwright-test": "^8.4.0",
67
- "tsm": "^2.2.1",
68
- "typescript": "^4.5.5",
69
- "uvu": "0.5.4",
70
- "watchlist": "^0.3.1"
53
+ "@genesislcap/foundation-testing": "^14.32.0",
54
+ "@genesislcap/genx": "^14.32.0"
71
55
  },
72
56
  "dependencies": {
73
- "@genesislcap/foundation-comms": "^14.30.3",
74
- "@genesislcap/foundation-events": "^14.30.3",
75
- "@genesislcap/foundation-utils": "^14.30.3",
76
- "@genesislcap/foundation-zero": "^14.30.3",
57
+ "@genesislcap/foundation-comms": "^14.32.0",
58
+ "@genesislcap/foundation-events": "^14.32.0",
59
+ "@genesislcap/foundation-utils": "^14.32.0",
60
+ "@genesislcap/foundation-zero": "^14.32.0",
77
61
  "@microsoft/fast-colors": "^5.1.4",
78
62
  "@microsoft/fast-components": "^2.21.3",
79
63
  "@microsoft/fast-element": "^1.7.0",
@@ -89,5 +73,5 @@
89
73
  "access": "public"
90
74
  },
91
75
  "customElements": "dist/custom-elements.json",
92
- "gitHead": "5f2858b6708b64c5ed6378fc54e09629539a563a"
76
+ "gitHead": "90c5bb2e7631cbf03d48f408f54a35b3e5a2ea2f"
93
77
  }
@@ -1,50 +1 @@
1
- import type { PlaywrightTestConfig } from '@playwright/test';
2
-
3
- /**
4
- * If this was an app level config, we might import each fixture from the mfs we're using to create a union
5
- */
6
- import type { TestFixture as HeaderFixture } from './test/e2e';
7
-
8
- type Fixtures = HeaderFixture & {}; // < and several others if this was app level
9
-
10
- const config: PlaywrightTestConfig<Fixtures> = {
11
- testMatch: '**/*.e2e.ts',
12
- globalSetup: '@genesislcap/foundation-testing/playwright', // returns teardown
13
- /**
14
- * We might create a discreet project per mf, or an entire config per mf, will know soon enough...
15
- */
16
- projects: [
17
- {
18
- name: 'Chrome Stable',
19
- use: {
20
- browserName: 'chromium',
21
- channel: 'chrome',
22
- ignoreHTTPSErrors: true,
23
- /**
24
- * We should be able to use these 'use' blocks at the App level to provide config data to our micro frontends.
25
- * This might include what backend to run against, what username password combo to use etc.
26
- *
27
- * config: AppLevelPkgConfig;
28
- */
29
- // config: {
30
- // API_HOST: 'wss://dev-foundation1/gwf/',
31
- // DEFAULT_USER: 'Derek',
32
- // DEFAULT_PASSWORD: 'Paul',
33
- // PORT: 5030,
34
- // },
35
- },
36
- },
37
- ],
38
- webServer: {
39
- command: 'npm run dev:no-open',
40
- url: 'http://localhost:5010/',
41
- timeout: 120000,
42
- reuseExistingServer: !process.env.CI,
43
- },
44
- use: {
45
- baseURL: 'http://localhost:5010/',
46
- },
47
- // reporter: [['html', { open: 'never' }]],
48
- };
49
-
50
- export default config;
1
+ export { configDefaults as default } from '@genesislcap/foundation-testing/e2e';
@@ -1,4 +1,4 @@
1
- import { expect } from '@playwright/test';
1
+ import { expect } from '@genesislcap/foundation-testing/e2e';
2
2
  import { test } from '../fixture';
3
3
 
4
4
  test('Navigation logo is visible and redirects to the home page', async ({ headerPage, page }) => {
@@ -1,6 +1,9 @@
1
- import { PackageConfig, defaultAuditThresholds } from '@genesislcap/foundation-testing/e2e';
1
+ import {
2
+ PackageConfig,
3
+ defaultAuditThresholds,
4
+ playAudit,
5
+ } from '@genesislcap/foundation-testing/e2e';
2
6
  import type { Locator, Page } from '@playwright/test';
3
- import { playAudit } from 'playwright-lighthouse';
4
7
 
5
8
  export class HeaderPage {
6
9
  config: PackageConfig;
package/jsdom.setup.ts DELETED
@@ -1 +0,0 @@
1
- export * from '@genesislcap/foundation-testing/jsdom';
package/tsm.js DELETED
@@ -1,3 +0,0 @@
1
- const config = require('@genesislcap/foundation-testing/tsm');
2
-
3
- module.exports = config;