@elliemae/ds-monorepo-devops 3.52.0-rc.8 → 3.52.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.
@@ -1,9 +1,12 @@
1
+ /* eslint-disable max-len */
1
2
  import { jestConfig } from '@elliemae/pui-cli';
2
- import path from 'path';
3
+ import path from 'node:path';
3
4
  import { fileURLToPath } from 'url';
5
+
4
6
  const __filename = fileURLToPath(import.meta.url); // get the resolved path to the file
5
7
  const __dirname = path.dirname(__filename); // get the name of the directory
6
8
  const getFileFromCurrentFolder = (fileName) => path.normalize(path.resolve(__dirname, fileName));
9
+
7
10
  /**
8
11
  * Generates an array of setup files for Jest based on provided flags.
9
12
  *
@@ -65,6 +68,10 @@ export const config = ({ relativePathAfterTestsFolder = undefined, firstLevelSpr
65
68
  testTimeout: 120000,
66
69
  setupFilesAfterEnv: [...jestConfig.setupFilesAfterEnv, ...getSetupFilesAfterEnvBasedOnFlags({ silenceConsole })],
67
70
  ...firstLevelSpread,
71
+ transformIgnorePatterns: [
72
+ ...jestConfig.transformIgnorePatterns,
73
+ // '/node_modules/(?!(\@elliemae\/pui-cli|lodash-es|react-select|react-dates|d3|internmap|delaunator|robust-predicates))/',
74
+ ],
68
75
  };
69
76
  };
70
77
  export default config;
@@ -0,0 +1,11 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Testing Page</title>
7
+ </head>
8
+ <body>
9
+ <div id="root"></div>
10
+ </body>
11
+ </html>
@@ -0,0 +1,32 @@
1
+ import { defineConfig, devices } from '@playwright/experimental-ct-react';
2
+ // import { defineConfig as viteDefineConfig } from 'vite';
3
+ // import react from '@vitejs/plugin-react';
4
+
5
+ export const config = defineConfig({
6
+ testDir: './src/tests',
7
+ testMatch: '**/*.test.playwright.@(js|jsx|ts|tsx)',
8
+ snapshotDir: './__snapshots__',
9
+ timeout: 10 * 1000,
10
+ fullyParallel: process.env.CI ? false : true,
11
+ forbidOnly: false,
12
+ /* Retry on CI only */
13
+ retries: process.env.CI ? 2 : 0,
14
+ /* Opt out of parallel tests on CI. */
15
+ workers: process.env.CI ? 1 : undefined,
16
+ /* Reporter to use. See https://playwright.dev/docs/test-reporters */
17
+ reporter: 'list',
18
+ // ctViteConfig: viteDefineConfig({ logLevel: 'info', plugins: [react()] }),
19
+ use: {
20
+ ctPort: 31500,
21
+ headless: process.env.CI ? true : false,
22
+ launchOptions: {
23
+ devtools: process.env.CI ? false : true,
24
+ },
25
+ },
26
+ projects: [
27
+ {
28
+ name: 'chromium',
29
+ use: { ...devices['Desktop Chrome'] },
30
+ },
31
+ ],
32
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-monorepo-devops",
3
- "version": "3.52.0-rc.8",
3
+ "version": "3.52.0",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Monorepo Devops",
6
6
  "type": "module",
@@ -14,8 +14,16 @@
14
14
  },
15
15
  "exports": {
16
16
  "./configs/jest.config": {
17
- "import": "./configs/jest.config.mjs",
18
- "require": "./configs/jest.config.mjs"
17
+ "import": "./configs/jest/jest.config.mjs",
18
+ "require": "./configs/jest/jest.config.mjs"
19
+ },
20
+ "./configs/jest/jest.config": {
21
+ "import": "./configs/jest/jest.config.mjs",
22
+ "require": "./configs/jest/jest.config.mjs"
23
+ },
24
+ "./configs/playwright/playwright-component-testing-config": {
25
+ "import": "./configs/playwright/playwright-component-testing-config.mjs",
26
+ "require": "./configs/playwright/playwright-component-testing-config.mjs"
19
27
  }
20
28
  },
21
29
  "sideEffects": [],
@@ -35,7 +43,7 @@
35
43
  "indent": 4
36
44
  },
37
45
  "peerDependencies": {
38
- "@elliemae/pui-cli": "9.0.0-next.55",
46
+ "@elliemae/pui-cli": "9.0.0-next.63",
39
47
  "arg": "~5.0.2",
40
48
  "glob": "~10.2.5",
41
49
  "ignore": "^5.3.0",
@@ -46,5 +54,8 @@
46
54
  "access": "public",
47
55
  "typeSafety": false
48
56
  },
57
+ "dependencies": {
58
+ "@playwright/experimental-ct-react": "^1.51.1"
59
+ },
49
60
  "scripts": {}
50
61
  }