Skip to content

Commit ffbe58d

Browse files
author
Szymon.Poltorak
committed
refactor: rename mock to mocks folders
1 parent 9d4a223 commit ffbe58d

File tree

8 files changed

+7
-7
lines changed

8 files changed

+7
-7
lines changed
File renamed without changes.

nx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"!{workspaceRoot}/**/.code-pushup/**/*",
1515
"!{projectRoot}/code-pushup.config.?(m)[jt]s",
1616
"!{projectRoot}/code-pushup.config.bundled_*.mjs",
17-
"!{projectRoot}/@(test|mocks|mock)/**/*",
17+
"!{projectRoot}/@(test|mocks)/**/*",
1818
"!{projectRoot}/**/?(*.)test.[jt]s?(x)?(.snap)",
1919
"!{projectRoot}/**/?(*.)mocks.[jt]s?(x)",
2020
"!{projectRoot}/**/?(*.)mock.[jt]s?(x)",
File renamed without changes.

packages/nx-plugin/src/executors/cli/utils.int.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, expect, it, vi } from 'vitest';
22
import type { UploadConfig } from '@code-pushup/models';
3-
import { normalizedExecutorContext } from '../../../mock/utils/executor.js';
3+
import { normalizedExecutorContext } from '../../../mocks/utils/executor.js';
44
import * as config from '../internal/config.js';
55
import { parseCliExecutorOptions } from './utils.js';
66

packages/nx-plugin/src/executors/internal/config.int.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect } from 'vitest';
2-
import { ENV } from '../../../mock/fixtures/env.js';
2+
import { ENV } from '../../../mocks/fixtures/env.js';
33
import { uploadConfig } from './config.js';
44
import * as env from './env.js';
55

packages/nx-plugin/src/executors/internal/config.unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { type MockInstance, describe, expect } from 'vitest';
22
import { osAgnosticPath } from '@code-pushup/test-utils';
3-
import { ENV } from '../../../mock/fixtures/env.js';
3+
import { ENV } from '../../../mocks/fixtures/env.js';
44
import { globalConfig, persistConfig, uploadConfig } from './config.js';
55

66
describe('globalConfig', () => {

packages/plugin-lighthouse/CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ For a full list of available flags check out [this document](https://peter.sh/ex
6666

6767
### Chrome User Data
6868

69-
To bootstrap Chrome with a predefined for setting we have to provide a couple of config files that we located under `<project-root>/mock/chromium-user-data`.
69+
To bootstrap Chrome with a predefined for setting we have to provide a couple of config files that we located under `<project-root>/mocks/chromium-user-data`.
7070
When executing Lighthouse we provide the path to this folder over the `Flag` object.
7171

7272
To generate initialise or edit the file structure under `chromium-user-data` do the following steps:
7373

74-
1. Spin up Chrome by running `npx chrome-debug --user-data-dir=./packages/plugin-lighthouse/mock/chromium-user-data`
74+
1. Spin up Chrome by running `npx chrome-debug --user-data-dir=./packages/plugin-lighthouse/mocks/chromium-user-data`
7575
<img width="1202" alt="chrome-blank-screen" src="./docs/images/chrome-blank-screen.png">
7676

77-
2. If you do this the first time you should already see content under `<project-root>/mock/chromium-user-data`
77+
2. If you do this the first time you should already see content under `<project-root>/mocks/chromium-user-data`
7878
3. Edit the configuration over the Chrome UI. E.g. adding a profile
7979
4. Close chromium and open it again, and you should see chromium bootstraps as the configured user
8080
<img width="1202" alt="chrome-blank-screen-pre-configured" src="./docs/images/chrome-blank-screen-pre-configure.png">

0 commit comments

Comments
 (0)