@genesislcap/uvu-playwright-builder 14.353.0 → 14.353.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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;yBAErC,KAAK,YAAY;AAAvC,wBA2EE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;yBAErC,KAAK,YAAY;AAAvC,wBA0EE"}
package/dist/index.js CHANGED
@@ -27,7 +27,9 @@ exports.default = (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* (
27
27
  // unit tests
28
28
  if (browser) {
29
29
  // browser target - executing using playwright-test
30
- const playwrightTest = yield (0, build_kit_1.resolveBin)('playwright-test');
30
+ // Resolve from builder's package location since playwright-test is a dependency of uvu-playwright-builder
31
+ const builderPackageDir = (0, node_path_1.resolve)(__dirname, '..');
32
+ const playwrightTest = yield (0, build_kit_1.resolveBin)('playwright-test', 'playwright-test', builderPackageDir);
31
33
  const debugParam = debug ? '--debug' : '';
32
34
  const watchParam = watch ? '--watch' : '';
33
35
  const covParam = coverage ? '--cov' : '';
@@ -47,13 +49,10 @@ exports.default = (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* (
47
49
  // node target - executing using uvu/jsdom
48
50
  const nodeArgs = debug ? '--inspect-brk' : '';
49
51
  const matchParam = match ? match : 'test.ts';
50
- // tsm expects a relative path to config file incl. extension
51
- const tsmJS = (0, node_path_1.resolve)(__dirname, './config/tsm.js');
52
- const tsmJSRelative = (0, node_path_1.relative)(cwd, tsmJS);
53
52
  const jsdomSetupPath = (0, node_path_1.resolve)(__dirname, './config/jsdom.setup.ts');
54
53
  const uvu = yield (0, build_kit_1.resolveBin)('uvu');
55
54
  const ignore = ['dist', 'e2e', 'docs', 'temp', 'coverage']; // .git, node_modules are ignored by default
56
- const unitTestCommand = `${uvu} -r tsm --tsmconfig ${tsmJSRelative} -r tsx/cjs -r ${jsdomSetupPath} . "${matchParam}" ${ignore.map((i) => ' -i ' + i)}`;
55
+ const unitTestCommand = `${uvu} -r tsx/cjs -r ${jsdomSetupPath} . "${matchParam}" ${ignore.map((i) => ' -i ' + i)}`;
57
56
  if (coverage) {
58
57
  const c8 = yield (0, build_kit_1.resolveBin)('c8');
59
58
  const command = `${c8} --include=src --all --reporter=text --reporter=lcov node ${unitTestCommand}`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/uvu-playwright-builder",
3
3
  "description": "UVU/Playwright builder",
4
- "version": "14.353.0",
4
+ "version": "14.353.2",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -14,15 +14,15 @@
14
14
  "dev": "tsc -b ./tsconfig.json -w"
15
15
  },
16
16
  "dependencies": {
17
- "@genesislcap/build-kit": "14.353.0",
18
- "@genesislcap/foundation-testing": "14.353.0",
17
+ "@genesislcap/build-kit": "14.353.2",
18
+ "@genesislcap/foundation-testing": "14.353.2",
19
19
  "c8": "^7.11.0",
20
20
  "nyc": "^15.1.0",
21
- "playwright-test": "^8.4.0",
22
- "tsm": "^2.2.1",
21
+ "playwright-test": "^14.1.12",
23
22
  "tsx": "^4.7.0",
24
23
  "uvu": "0.5.4",
25
- "watchlist": "^0.3.1"
24
+ "watchlist": "^0.3.1",
25
+ "yoctocolors": "^2.1.1"
26
26
  },
27
27
  "devDependencies": {
28
28
  "copyfiles": "^2.4.1"
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "056526f2c5983b54024fe6fcdeb7c6e83e0e5cb3"
38
+ "gitHead": "7576474e932416a5af4096e63504681eb01e0c8c"
39
39
  }
package/src/index.ts CHANGED
@@ -35,7 +35,9 @@ export default async (ctx: BuildContext) => {
35
35
  // unit tests
36
36
  if (browser) {
37
37
  // browser target - executing using playwright-test
38
- const playwrightTest = await resolveBin('playwright-test');
38
+ // Resolve from builder's package location since playwright-test is a dependency of uvu-playwright-builder
39
+ const builderPackageDir = resolve(__dirname, '..');
40
+ const playwrightTest = await resolveBin('playwright-test', 'playwright-test', builderPackageDir);
39
41
  const debugParam = debug ? '--debug' : '';
40
42
  const watchParam = watch ? '--watch' : '';
41
43
  const covParam = coverage ? '--cov' : '';
@@ -55,13 +57,10 @@ export default async (ctx: BuildContext) => {
55
57
  // node target - executing using uvu/jsdom
56
58
  const nodeArgs = debug ? '--inspect-brk' : '';
57
59
  const matchParam = match ? match : 'test.ts';
58
- // tsm expects a relative path to config file incl. extension
59
- const tsmJS = resolve(__dirname, './config/tsm.js');
60
- const tsmJSRelative = relative(cwd, tsmJS);
61
60
  const jsdomSetupPath = resolve(__dirname, './config/jsdom.setup.ts');
62
61
  const uvu = await resolveBin('uvu');
63
62
  const ignore = ['dist', 'e2e', 'docs', 'temp', 'coverage']; // .git, node_modules are ignored by default
64
- const unitTestCommand = `${uvu} -r tsm --tsmconfig ${tsmJSRelative} -r tsx/cjs -r ${jsdomSetupPath} . "${matchParam}" ${ignore.map(
63
+ const unitTestCommand = `${uvu} -r tsx/cjs -r ${jsdomSetupPath} . "${matchParam}" ${ignore.map(
65
64
  (i) => ' -i ' + i,
66
65
  )}`;
67
66
 
package/config/tsm.js DELETED
@@ -1 +0,0 @@
1
- module.exports = require('@genesislcap/foundation-testing/tsm');
@@ -1 +0,0 @@
1
- module.exports = require('@genesislcap/foundation-testing/tsm');