@brillout/test-e2e 0.5.32 → 0.5.34

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/LICENSE.md ADDED
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020-present Romuald Brillout
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,10 @@
1
+ E2E test runner, using [Playwright](https://playwright.dev).
2
+
3
+ Used by:
4
+ - Vike
5
+ - vike-react
6
+ - vike-vue
7
+ - Telefunc
8
+ - DocPress
9
+
10
+ Don't use this: this package isn't meant for others to use. That said, feel free to fork this project.
@@ -43,7 +43,7 @@ function runCommandLongRunning({ cmd, cwd, killPort, isReadyLog, isReadyTimeout,
43
43
  command = command + '.cmd';
44
44
  }
45
45
  }
46
- const proc = spawn(command, args, { cwd, detached, ...nodeWorkaround });
46
+ const proc = spawn(command, args, { cwd, detached, ...nodeWorkaround() });
47
47
  let procExited = false;
48
48
  proc.stdin.on('data', async (chunk) => {
49
49
  const data = String(chunk);
@@ -225,15 +225,11 @@ async function killByPort(port) {
225
225
  function isSuccessCode(code) {
226
226
  return code === 0 || code === null || (code === 1 && isWindows());
227
227
  }
228
- /* Doesn't work:
229
- const spawn2: typeof spawn_ = (...args) => spawn_(...args)
230
- const spawn3: typeof spawn_ = function(...args) { return spawn_(...args) }
231
- //*/
228
+ // Workaround for Node.js regression:
229
+ // - https://github.com/nodejs/node/issues/52475
230
+ // - https://github.com/prebuild/prebuildify/issues/83#issuecomment-2056607495
232
231
  function nodeWorkaround() {
233
232
  if (isWindows()) {
234
- // Workaround for Node.js regression:
235
- // - https://github.com/nodejs/node/issues/52475
236
- // - https://github.com/prebuild/prebuildify/issues/83#issuecomment-2056607495
237
233
  return { shell: true };
238
234
  }
239
235
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/test-e2e",
3
- "version": "0.5.32",
3
+ "version": "0.5.34",
4
4
  "bin": "./bin.js",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",
@@ -12,18 +12,16 @@
12
12
  "// === Release ===": "",
13
13
  "prepublishOnly": "pnpm run build",
14
14
  "release": "npm version patch && npm publish && git push && git push --tags",
15
- "========= Clean": "",
16
- "reset": "git clean -Xdf && pnpm install && pnpm run build",
17
15
  "========= Formatting": "",
18
16
  "format": "pnpm run format:biome",
19
17
  "format:prettier": "git ls-files | egrep '\\.(json|js|jsx|css|ts|tsx|vue|mjs|cjs)$' | grep --invert-match package.json | xargs pnpm exec prettier --write",
20
18
  "format:biome": "biome format --write .",
21
19
  "format:check": "biome format . || echo Fix formatting by running: $ pnpm run format",
22
- "========= Only allow pnpm; forbid yarn & npm": "",
23
- "preinstall": "npx only-allow pnpm"
20
+ "========= Reset": "",
21
+ "reset": "git clean -Xdf && pnpm install && pnpm run build"
24
22
  },
25
23
  "dependencies": {
26
- "@brillout/part-regex": "^0.1.3",
24
+ "@brillout/part-regex": "^0.1.4",
27
25
  "@brillout/picocolors": "^1.0.9",
28
26
  "chai": "^4.3.6",
29
27
  "esbuild": "^0.16.5",
@@ -46,7 +44,6 @@
46
44
  "prettier": "^3.2.5",
47
45
  "typescript": "^5.4.5"
48
46
  },
49
- "packageManager": "pnpm@8.15.1",
50
47
  "repository": "github:brillout/test-e2e",
51
48
  "files": [
52
49
  "dist/"