@teambit/workspace.testing.mock-workspace 0.0.0-0884c04126cf5c7fbc385f2e47e125f5f236cb14

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.
@@ -0,0 +1 @@
1
+ export { mockWorkspace, destroyWorkspace, WorkspaceData, setWorkspaceConfig, mockBareScope } from './mock-workspace';
package/dist/index.js ADDED
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "WorkspaceData", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _mockWorkspace().WorkspaceData;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "destroyWorkspace", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _mockWorkspace().destroyWorkspace;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "mockBareScope", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _mockWorkspace().mockBareScope;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "mockWorkspace", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _mockWorkspace().mockWorkspace;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "setWorkspaceConfig", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _mockWorkspace().setWorkspaceConfig;
34
+ }
35
+ });
36
+ function _mockWorkspace() {
37
+ const data = require("./mock-workspace");
38
+ _mockWorkspace = function () {
39
+ return data;
40
+ };
41
+ return data;
42
+ }
43
+
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_mockWorkspace","data","require"],"sources":["index.ts"],"sourcesContent":["export { mockWorkspace, destroyWorkspace, WorkspaceData, setWorkspaceConfig, mockBareScope } from './mock-workspace';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAAA,eAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,cAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA","ignoreList":[]}
@@ -0,0 +1,26 @@
1
+ export type WorkspaceData = {
2
+ workspacePath: string;
3
+ remoteScopePath: string;
4
+ remoteScopeName: string;
5
+ };
6
+ /**
7
+ * setup a new workspace on a temp directory and setup a bare-scope locally to simulate a remote scope for commands
8
+ * such as `bit export`.
9
+ * call `destroyWorkspace()` once the tests completed to keep the filesystem clean.
10
+ *
11
+ * to print the path of the workspace, run the tests with `--debug` flag.
12
+ */
13
+ export declare function mockWorkspace(opts?: {
14
+ bareScopeName?: string;
15
+ }): WorkspaceData;
16
+ export declare function mockBareScope(remoteToAdd: string, scopeNameSuffix?: string): {
17
+ scopeName: string;
18
+ scopePath: string;
19
+ };
20
+ /**
21
+ * deletes the paths created by mockWorkspace. pass the results you got from `mockWorkspace()`
22
+ *
23
+ * to keep the workspace and the remote scope, run the tests with `--debug` flag.
24
+ */
25
+ export declare function destroyWorkspace(workspaceData: WorkspaceData): Promise<void>;
26
+ export declare function setWorkspaceConfig(workspacePath: string, key: string, val: any): Promise<void>;
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.destroyWorkspace = destroyWorkspace;
7
+ exports.mockBareScope = mockBareScope;
8
+ exports.mockWorkspace = mockWorkspace;
9
+ exports.setWorkspaceConfig = setWorkspaceConfig;
10
+ function _fsExtra() {
11
+ const data = _interopRequireDefault(require("fs-extra"));
12
+ _fsExtra = function () {
13
+ return data;
14
+ };
15
+ return data;
16
+ }
17
+ function _path() {
18
+ const data = _interopRequireDefault(require("path"));
19
+ _path = function () {
20
+ return data;
21
+ };
22
+ return data;
23
+ }
24
+ function _legacy() {
25
+ const data = require("@teambit/legacy.e2e-helper");
26
+ _legacy = function () {
27
+ return data;
28
+ };
29
+ return data;
30
+ }
31
+ function _commentJson() {
32
+ const data = require("comment-json");
33
+ _commentJson = function () {
34
+ return data;
35
+ };
36
+ return data;
37
+ }
38
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
39
+ const isDebugMode = () => process.argv.includes('--debug');
40
+
41
+ /**
42
+ * setup a new workspace on a temp directory and setup a bare-scope locally to simulate a remote scope for commands
43
+ * such as `bit export`.
44
+ * call `destroyWorkspace()` once the tests completed to keep the filesystem clean.
45
+ *
46
+ * to print the path of the workspace, run the tests with `--debug` flag.
47
+ */
48
+ function mockWorkspace(opts = {}) {
49
+ const legacyHelper = new (_legacy().Helper)();
50
+ if (opts.bareScopeName) {
51
+ legacyHelper.scopeHelper.reInitWorkspace();
52
+ legacyHelper.scopes.setRemoteScope(undefined, undefined, opts.bareScopeName);
53
+ legacyHelper.scopeHelper.addRemoteScope();
54
+ } else {
55
+ legacyHelper.scopeHelper.setWorkspaceWithRemoteScope();
56
+ }
57
+ legacyHelper.workspaceJsonc.setupDefault();
58
+ if (isDebugMode()) {
59
+ // eslint-disable-next-line no-console
60
+ console.log('workspace created at ', legacyHelper.scopes.localPath);
61
+ }
62
+ return {
63
+ workspacePath: legacyHelper.scopes.localPath,
64
+ remoteScopePath: legacyHelper.scopes.remotePath,
65
+ remoteScopeName: legacyHelper.scopes.remote
66
+ };
67
+ }
68
+ function mockBareScope(remoteToAdd, scopeNameSuffix) {
69
+ const legacyHelper = new (_legacy().Helper)();
70
+ const {
71
+ scopeName,
72
+ scopePath
73
+ } = legacyHelper.scopeHelper.getNewBareScope(scopeNameSuffix, undefined, remoteToAdd);
74
+ if (isDebugMode()) {
75
+ // eslint-disable-next-line no-console
76
+ console.log('base-scope created at ', scopePath);
77
+ }
78
+ return {
79
+ scopeName,
80
+ scopePath
81
+ };
82
+ }
83
+
84
+ /**
85
+ * deletes the paths created by mockWorkspace. pass the results you got from `mockWorkspace()`
86
+ *
87
+ * to keep the workspace and the remote scope, run the tests with `--debug` flag.
88
+ */
89
+ async function destroyWorkspace(workspaceData) {
90
+ if (isDebugMode()) return;
91
+ const {
92
+ workspacePath,
93
+ remoteScopePath
94
+ } = workspaceData;
95
+ await Promise.all([workspacePath, remoteScopePath].map(_ => _fsExtra().default.remove(_)));
96
+ }
97
+ async function setWorkspaceConfig(workspacePath, key, val) {
98
+ const workspaceConfigPath = _path().default.join(workspacePath, 'workspace.jsonc');
99
+ const content = await _fsExtra().default.readFile(workspaceConfigPath, 'utf-8');
100
+ const workspaceConfig = (0, _commentJson().parse)(content);
101
+ const obj = {
102
+ [key]: val
103
+ };
104
+ const updated = (0, _commentJson().assign)(workspaceConfig, obj);
105
+ const contentToWrite = (0, _commentJson().stringify)(updated, null, 2);
106
+ await _fsExtra().default.writeFile(workspaceConfigPath, contentToWrite);
107
+ }
108
+
109
+ //# sourceMappingURL=mock-workspace.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_fsExtra","data","_interopRequireDefault","require","_path","_legacy","_commentJson","e","__esModule","default","isDebugMode","process","argv","includes","mockWorkspace","opts","legacyHelper","LegacyHelper","bareScopeName","scopeHelper","reInitWorkspace","scopes","setRemoteScope","undefined","addRemoteScope","setWorkspaceWithRemoteScope","workspaceJsonc","setupDefault","console","log","localPath","workspacePath","remoteScopePath","remotePath","remoteScopeName","remote","mockBareScope","remoteToAdd","scopeNameSuffix","scopeName","scopePath","getNewBareScope","destroyWorkspace","workspaceData","Promise","all","map","_","fs","remove","setWorkspaceConfig","key","val","workspaceConfigPath","path","join","content","readFile","workspaceConfig","parse","obj","updated","assign","contentToWrite","stringify","writeFile"],"sources":["mock-workspace.ts"],"sourcesContent":["import fs from 'fs-extra';\nimport path from 'path';\nimport { Helper as LegacyHelper } from '@teambit/legacy.e2e-helper';\nimport { assign, parse, stringify } from 'comment-json';\n\nexport type WorkspaceData = { workspacePath: string; remoteScopePath: string; remoteScopeName: string };\n\nconst isDebugMode = () => process.argv.includes('--debug');\n\n/**\n * setup a new workspace on a temp directory and setup a bare-scope locally to simulate a remote scope for commands\n * such as `bit export`.\n * call `destroyWorkspace()` once the tests completed to keep the filesystem clean.\n *\n * to print the path of the workspace, run the tests with `--debug` flag.\n */\nexport function mockWorkspace(opts: { bareScopeName?: string } = {}): WorkspaceData {\n const legacyHelper = new LegacyHelper();\n if (opts.bareScopeName) {\n legacyHelper.scopeHelper.reInitWorkspace();\n legacyHelper.scopes.setRemoteScope(undefined, undefined, opts.bareScopeName);\n legacyHelper.scopeHelper.addRemoteScope();\n } else {\n legacyHelper.scopeHelper.setWorkspaceWithRemoteScope();\n }\n legacyHelper.workspaceJsonc.setupDefault();\n if (isDebugMode()) {\n // eslint-disable-next-line no-console\n console.log('workspace created at ', legacyHelper.scopes.localPath);\n }\n\n return {\n workspacePath: legacyHelper.scopes.localPath,\n remoteScopePath: legacyHelper.scopes.remotePath,\n remoteScopeName: legacyHelper.scopes.remote,\n };\n}\n\nexport function mockBareScope(remoteToAdd: string, scopeNameSuffix?: string) {\n const legacyHelper = new LegacyHelper();\n const { scopeName, scopePath } = legacyHelper.scopeHelper.getNewBareScope(scopeNameSuffix, undefined, remoteToAdd);\n if (isDebugMode()) {\n // eslint-disable-next-line no-console\n console.log('base-scope created at ', scopePath);\n }\n\n return { scopeName, scopePath };\n}\n\n/**\n * deletes the paths created by mockWorkspace. pass the results you got from `mockWorkspace()`\n *\n * to keep the workspace and the remote scope, run the tests with `--debug` flag.\n */\nexport async function destroyWorkspace(workspaceData: WorkspaceData) {\n if (isDebugMode()) return;\n const { workspacePath, remoteScopePath } = workspaceData;\n await Promise.all([workspacePath, remoteScopePath].map((_) => fs.remove(_)));\n}\n\nexport async function setWorkspaceConfig(workspacePath: string, key: string, val: any) {\n const workspaceConfigPath = path.join(workspacePath, 'workspace.jsonc');\n const content = await fs.readFile(workspaceConfigPath, 'utf-8');\n const workspaceConfig = parse(content);\n const obj = {\n [key]: val,\n };\n const updated = assign(workspaceConfig, obj);\n const contentToWrite = stringify(updated, null, 2);\n await fs.writeFile(workspaceConfigPath, contentToWrite);\n}\n"],"mappings":";;;;;;;;;AAAA,SAAAA,SAAA;EAAA,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BAAmB,EAAE,OAAO,CAAC;EAC/D,MAAMK,eAAe,GAAG,IAAAC,oBAAK,EAACH,OAAO,CAAC;EACtC,MAAMI,GAAG,GAAG;IACV,CAACT,GAAG,GAAGC;EACT,CAAC;EACD,MAAMS,OAAO,GAAG,IAAAC,qBAAM,EAACJ,eAAe,EAAEE,GAAG,CAAC;EAC5C,MAAMG,cAAc,GAAG,IAAAC,wBAAS,EAACH,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;EAClD,MAAMb,kBAAE,CAACiB,SAAS,CAACZ,mBAAmB,EAAEU,cAAc,CAAC;AACzD","ignoreList":[]}
package/index.ts ADDED
@@ -0,0 +1 @@
1
+ export { mockWorkspace, destroyWorkspace, WorkspaceData, setWorkspaceConfig, mockBareScope } from './mock-workspace';
@@ -0,0 +1,71 @@
1
+ import fs from 'fs-extra';
2
+ import path from 'path';
3
+ import { Helper as LegacyHelper } from '@teambit/legacy.e2e-helper';
4
+ import { assign, parse, stringify } from 'comment-json';
5
+
6
+ export type WorkspaceData = { workspacePath: string; remoteScopePath: string; remoteScopeName: string };
7
+
8
+ const isDebugMode = () => process.argv.includes('--debug');
9
+
10
+ /**
11
+ * setup a new workspace on a temp directory and setup a bare-scope locally to simulate a remote scope for commands
12
+ * such as `bit export`.
13
+ * call `destroyWorkspace()` once the tests completed to keep the filesystem clean.
14
+ *
15
+ * to print the path of the workspace, run the tests with `--debug` flag.
16
+ */
17
+ export function mockWorkspace(opts: { bareScopeName?: string } = {}): WorkspaceData {
18
+ const legacyHelper = new LegacyHelper();
19
+ if (opts.bareScopeName) {
20
+ legacyHelper.scopeHelper.reInitWorkspace();
21
+ legacyHelper.scopes.setRemoteScope(undefined, undefined, opts.bareScopeName);
22
+ legacyHelper.scopeHelper.addRemoteScope();
23
+ } else {
24
+ legacyHelper.scopeHelper.setWorkspaceWithRemoteScope();
25
+ }
26
+ legacyHelper.workspaceJsonc.setupDefault();
27
+ if (isDebugMode()) {
28
+ // eslint-disable-next-line no-console
29
+ console.log('workspace created at ', legacyHelper.scopes.localPath);
30
+ }
31
+
32
+ return {
33
+ workspacePath: legacyHelper.scopes.localPath,
34
+ remoteScopePath: legacyHelper.scopes.remotePath,
35
+ remoteScopeName: legacyHelper.scopes.remote,
36
+ };
37
+ }
38
+
39
+ export function mockBareScope(remoteToAdd: string, scopeNameSuffix?: string) {
40
+ const legacyHelper = new LegacyHelper();
41
+ const { scopeName, scopePath } = legacyHelper.scopeHelper.getNewBareScope(scopeNameSuffix, undefined, remoteToAdd);
42
+ if (isDebugMode()) {
43
+ // eslint-disable-next-line no-console
44
+ console.log('base-scope created at ', scopePath);
45
+ }
46
+
47
+ return { scopeName, scopePath };
48
+ }
49
+
50
+ /**
51
+ * deletes the paths created by mockWorkspace. pass the results you got from `mockWorkspace()`
52
+ *
53
+ * to keep the workspace and the remote scope, run the tests with `--debug` flag.
54
+ */
55
+ export async function destroyWorkspace(workspaceData: WorkspaceData) {
56
+ if (isDebugMode()) return;
57
+ const { workspacePath, remoteScopePath } = workspaceData;
58
+ await Promise.all([workspacePath, remoteScopePath].map((_) => fs.remove(_)));
59
+ }
60
+
61
+ export async function setWorkspaceConfig(workspacePath: string, key: string, val: any) {
62
+ const workspaceConfigPath = path.join(workspacePath, 'workspace.jsonc');
63
+ const content = await fs.readFile(workspaceConfigPath, 'utf-8');
64
+ const workspaceConfig = parse(content);
65
+ const obj = {
66
+ [key]: val,
67
+ };
68
+ const updated = assign(workspaceConfig, obj);
69
+ const contentToWrite = stringify(updated, null, 2);
70
+ await fs.writeFile(workspaceConfigPath, contentToWrite);
71
+ }
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@teambit/workspace.testing.mock-workspace",
3
+ "version": "0.0.0-0884c04126cf5c7fbc385f2e47e125f5f236cb14",
4
+ "homepage": "https://bit.cloud/teambit/workspace/testing/mock-workspace",
5
+ "main": "dist/index.js",
6
+ "componentId": {
7
+ "scope": "teambit.workspace",
8
+ "name": "testing/mock-workspace",
9
+ "version": "0884c04126cf5c7fbc385f2e47e125f5f236cb14"
10
+ },
11
+ "dependencies": {
12
+ "comment-json": "4.2.5",
13
+ "fs-extra": "10.0.0",
14
+ "@teambit/legacy.e2e-helper": "0.0.0-4f06bbe3338089fa2cc5c01818510a50ba5dec92"
15
+ },
16
+ "devDependencies": {
17
+ "@types/fs-extra": "9.0.7",
18
+ "@types/mocha": "9.1.0",
19
+ "chai": "4.3.0",
20
+ "@teambit/node.envs.node-babel-mocha": "0.1.5"
21
+ },
22
+ "peerDependencies": {},
23
+ "license": "Apache-2.0",
24
+ "optionalDependencies": {},
25
+ "peerDependenciesMeta": {},
26
+ "private": false,
27
+ "engines": {
28
+ "node": ">=12.22.0"
29
+ },
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "https://github.com/teambit/bit"
33
+ },
34
+ "keywords": [
35
+ "bit",
36
+ "components",
37
+ "collaboration",
38
+ "web",
39
+ "react",
40
+ "react-components",
41
+ "angular",
42
+ "angular-components"
43
+ ]
44
+ }
@@ -0,0 +1,41 @@
1
+ declare module '*.png' {
2
+ const value: any;
3
+ export = value;
4
+ }
5
+ declare module '*.svg' {
6
+ import type { FunctionComponent, SVGProps } from 'react';
7
+
8
+ export const ReactComponent: FunctionComponent<
9
+ SVGProps<SVGSVGElement> & { title?: string }
10
+ >;
11
+ const src: string;
12
+ export default src;
13
+ }
14
+ declare module '*.jpg' {
15
+ const value: any;
16
+ export = value;
17
+ }
18
+ declare module '*.jpeg' {
19
+ const value: any;
20
+ export = value;
21
+ }
22
+ declare module '*.gif' {
23
+ const value: any;
24
+ export = value;
25
+ }
26
+ declare module '*.bmp' {
27
+ const value: any;
28
+ export = value;
29
+ }
30
+ declare module '*.otf' {
31
+ const value: any;
32
+ export = value;
33
+ }
34
+ declare module '*.woff' {
35
+ const value: any;
36
+ export = value;
37
+ }
38
+ declare module '*.woff2' {
39
+ const value: any;
40
+ export = value;
41
+ }
@@ -0,0 +1,42 @@
1
+ declare module '*.module.css' {
2
+ const classes: { readonly [key: string]: string };
3
+ export default classes;
4
+ }
5
+ declare module '*.module.scss' {
6
+ const classes: { readonly [key: string]: string };
7
+ export default classes;
8
+ }
9
+ declare module '*.module.sass' {
10
+ const classes: { readonly [key: string]: string };
11
+ export default classes;
12
+ }
13
+
14
+ declare module '*.module.less' {
15
+ const classes: { readonly [key: string]: string };
16
+ export default classes;
17
+ }
18
+
19
+ declare module '*.less' {
20
+ const classes: { readonly [key: string]: string };
21
+ export default classes;
22
+ }
23
+
24
+ declare module '*.css' {
25
+ const classes: { readonly [key: string]: string };
26
+ export default classes;
27
+ }
28
+
29
+ declare module '*.sass' {
30
+ const classes: { readonly [key: string]: string };
31
+ export default classes;
32
+ }
33
+
34
+ declare module '*.scss' {
35
+ const classes: { readonly [key: string]: string };
36
+ export default classes;
37
+ }
38
+
39
+ declare module '*.mdx' {
40
+ const component: any;
41
+ export default component;
42
+ }