@nx/playwright 19.2.0-beta.5 → 19.2.0-beta.6

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/playwright",
3
- "version": "19.2.0-beta.5",
3
+ "version": "19.2.0-beta.6",
4
4
  "type": "commonjs",
5
5
  "homepage": "https://nx.dev",
6
6
  "private": false,
@@ -35,9 +35,9 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@phenomnomnominal/tsquery": "~5.0.1",
38
- "@nx/devkit": "19.2.0-beta.5",
39
- "@nx/eslint": "19.2.0-beta.5",
40
- "@nx/js": "19.2.0-beta.5",
38
+ "@nx/devkit": "19.2.0-beta.6",
39
+ "@nx/eslint": "19.2.0-beta.6",
40
+ "@nx/js": "19.2.0-beta.6",
41
41
  "tslib": "^2.3.0",
42
42
  "minimatch": "9.0.3"
43
43
  },
@@ -53,9 +53,7 @@ async function createNodesInternal(configFilePath, options, context, targetsCach
53
53
  return {};
54
54
  }
55
55
  const normalizedOptions = normalizeOptions(options);
56
- const hash = (0, calculate_hash_for_create_nodes_1.calculateHashForCreateNodes)(projectRoot, options, context, [
57
- (0, js_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot)),
58
- ]);
56
+ const hash = await (0, calculate_hash_for_create_nodes_1.calculateHashForCreateNodes)(projectRoot, options, context, [(0, js_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot))]);
59
57
  targetsCache[hash] ??= await buildPlaywrightTargets(configFilePath, projectRoot, normalizedOptions, context);
60
58
  const { targets, metadata } = targetsCache[hash];
61
59
  return {
@@ -119,7 +117,7 @@ async function buildPlaywrightTargets(configFilePath, projectRoot, options, cont
119
117
  // Playwright defaults to the following pattern.
120
118
  playwrightConfig.testMatch ??= '**/*.@(spec|test).?(c|m)[jt]s?(x)';
121
119
  const dependsOn = [];
122
- forEachTestFile((testFile) => {
120
+ await forEachTestFile((testFile) => {
123
121
  const relativeSpecFilePath = (0, devkit_1.normalizePath)((0, path_1.relative)(projectRoot, testFile));
124
122
  const targetName = `${options.ciTargetName}--${relativeSpecFilePath}`;
125
123
  ciTargetGroup.push(targetName);
@@ -157,8 +155,8 @@ async function buildPlaywrightTargets(configFilePath, projectRoot, options, cont
157
155
  }
158
156
  return { targets, metadata };
159
157
  }
160
- function forEachTestFile(cb, opts) {
161
- const files = (0, workspace_context_1.getFilesInDirectoryUsingContext)(opts.context.workspaceRoot, opts.path);
158
+ async function forEachTestFile(cb, opts) {
159
+ const files = await (0, workspace_context_1.getFilesInDirectoryUsingContext)(opts.context.workspaceRoot, opts.path);
162
160
  const matcher = createMatcher(opts.config.testMatch);
163
161
  const ignoredMatcher = opts.config.testIgnore
164
162
  ? createMatcher(opts.config.testIgnore)