@teambit/workspace.testing.mock-workspace 0.0.52 → 0.0.54

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/dist/index.js CHANGED
@@ -1,9 +1,44 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.mockBareScope = exports.setWorkspaceConfig = exports.destroyWorkspace = exports.mockWorkspace = void 0;
4
- var mock_workspace_1 = require("./mock-workspace");
5
- Object.defineProperty(exports, "mockWorkspace", { enumerable: true, get: function () { return mock_workspace_1.mockWorkspace; } });
6
- Object.defineProperty(exports, "destroyWorkspace", { enumerable: true, get: function () { return mock_workspace_1.destroyWorkspace; } });
7
- Object.defineProperty(exports, "setWorkspaceConfig", { enumerable: true, get: function () { return mock_workspace_1.setWorkspaceConfig; } });
8
- Object.defineProperty(exports, "mockBareScope", { enumerable: true, get: function () { return mock_workspace_1.mockBareScope; } });
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
+
9
44
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,mDAAqH;AAA5G,+GAAA,aAAa,OAAA;AAAE,kHAAA,gBAAgB,OAAA;AAAiB,oHAAA,kBAAkB,OAAA;AAAE,+GAAA,aAAa,OAAA"}
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":[]}
@@ -1,26 +1,43 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.mockWorkspace = mockWorkspace;
16
- exports.mockBareScope = mockBareScope;
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
17
6
  exports.destroyWorkspace = destroyWorkspace;
7
+ exports.mockBareScope = mockBareScope;
8
+ exports.mockWorkspace = mockWorkspace;
18
9
  exports.setWorkspaceConfig = setWorkspaceConfig;
19
- const fs_extra_1 = __importDefault(require("fs-extra"));
20
- const path_1 = __importDefault(require("path"));
21
- const legacy_e2e_helper_1 = require("@teambit/legacy.e2e-helper");
22
- const comment_json_1 = require("comment-json");
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 }; }
23
39
  const isDebugMode = () => process.argv.includes('--debug');
40
+
24
41
  /**
25
42
  * setup a new workspace on a temp directory and setup a bare-scope locally to simulate a remote scope for commands
26
43
  * such as `bit export`.
@@ -29,59 +46,64 @@ const isDebugMode = () => process.argv.includes('--debug');
29
46
  * to print the path of the workspace, run the tests with `--debug` flag.
30
47
  */
31
48
  function mockWorkspace(opts = {}) {
32
- const legacyHelper = new legacy_e2e_helper_1.Helper();
33
- if (opts.bareScopeName) {
34
- legacyHelper.scopeHelper.reInitLocalScope();
35
- legacyHelper.scopes.setRemoteScope(undefined, undefined, opts.bareScopeName);
36
- legacyHelper.scopeHelper.addRemoteScope();
37
- }
38
- else {
39
- legacyHelper.scopeHelper.setNewLocalAndRemoteScopes();
40
- }
41
- legacyHelper.workspaceJsonc.setupDefault();
42
- if (isDebugMode()) {
43
- // eslint-disable-next-line no-console
44
- console.log('workspace created at ', legacyHelper.scopes.localPath);
45
- }
46
- return {
47
- workspacePath: legacyHelper.scopes.localPath,
48
- remoteScopePath: legacyHelper.scopes.remotePath,
49
- remoteScopeName: legacyHelper.scopes.remote,
50
- };
49
+ const legacyHelper = new (_legacy().Helper)();
50
+ if (opts.bareScopeName) {
51
+ legacyHelper.scopeHelper.reInitLocalScope();
52
+ legacyHelper.scopes.setRemoteScope(undefined, undefined, opts.bareScopeName);
53
+ legacyHelper.scopeHelper.addRemoteScope();
54
+ } else {
55
+ legacyHelper.scopeHelper.setNewLocalAndRemoteScopes();
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
+ };
51
67
  }
52
68
  function mockBareScope(remoteToAdd, scopeNameSuffix) {
53
- const legacyHelper = new legacy_e2e_helper_1.Helper();
54
- const { scopeName, scopePath } = legacyHelper.scopeHelper.getNewBareScope(scopeNameSuffix, undefined, remoteToAdd);
55
- if (isDebugMode()) {
56
- // eslint-disable-next-line no-console
57
- console.log('base-scope created at ', scopePath);
58
- }
59
- return { scopeName, scopePath };
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
+ };
60
82
  }
83
+
61
84
  /**
62
85
  * deletes the paths created by mockWorkspace. pass the results you got from `mockWorkspace()`
63
86
  *
64
87
  * to keep the workspace and the remote scope, run the tests with `--debug` flag.
65
88
  */
66
- function destroyWorkspace(workspaceData) {
67
- return __awaiter(this, void 0, void 0, function* () {
68
- if (isDebugMode())
69
- return;
70
- const { workspacePath, remoteScopePath } = workspaceData;
71
- yield Promise.all([workspacePath, remoteScopePath].map((_) => fs_extra_1.default.remove(_)));
72
- });
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(_)));
73
96
  }
74
- function setWorkspaceConfig(workspacePath, key, val) {
75
- return __awaiter(this, void 0, void 0, function* () {
76
- const workspaceConfigPath = path_1.default.join(workspacePath, 'workspace.jsonc');
77
- const content = yield fs_extra_1.default.readFile(workspaceConfigPath, 'utf-8');
78
- const workspaceConfig = (0, comment_json_1.parse)(content);
79
- const obj = {
80
- [key]: val,
81
- };
82
- const updated = (0, comment_json_1.assign)(workspaceConfig, obj);
83
- const contentToWrite = (0, comment_json_1.stringify)(updated, null, 2);
84
- yield fs_extra_1.default.writeFile(workspaceConfigPath, contentToWrite);
85
- });
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);
86
107
  }
108
+
87
109
  //# sourceMappingURL=mock-workspace.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mock-workspace.js","sourceRoot":"","sources":["../mock-workspace.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAgBA,sCAoBC;AAED,sCASC;AAOD,4CAIC;AAED,gDAUC;AAtED,wDAA0B;AAC1B,gDAAwB;AACxB,kEAAoE;AACpE,+CAAwD;AAIxD,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ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C,CAAC;AAED;;;;GAIG;AACH,SAAsB,gBAAgB,CAAC,aAA4B;;QACjE,IAAI,WAAW,EAAE;YAAE,OAAO;QAC1B,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,GAAG,aAAa,CAAC;QACzD,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,kBAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/E,CAAC;CAAA;AAED,SAAsB,kBAAkB,CAAC,aAAqB,EAAE,GAAW,EAAE,GAAQ;;QACnF,MAAM,mBAAmB,GAAG,cAAI,CAAC,IAAI,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAC;QACxE,MAAM,OAAO,GAAG,MAAM,kBAAE,CAAC,QAAQ,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;QAChE,MAAM,eAAe,GAAG,IAAA,oBAAK,EAAC,OAAO,CAAC,CAAC;QACvC,MAAM,GAAG,GAAG;YACV,CAAC,GAAG,CAAC,EAAE,GAAG;SACX,CAAC;QACF,MAAM,OAAO,GAAG,IAAA,qBAAM,EAAC,eAAe,EAAE,GAAG,CAAC,CAAC;QAC7C,MAAM,cAAc,GAAG,IAAA,wBAAS,EAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;QACnD,MAAM,kBAAE,CAAC,SAAS,CAAC,mBAAmB,EAAE,cAAc,CAAC,CAAC;IAC1D,CAAC;CAAA"}
1
+ {"version":3,"names":["_fsExtra","data","_interopRequireDefault","require","_path","_legacy","_commentJson","e","__esModule","default","isDebugMode","process","argv","includes","mockWorkspace","opts","legacyHelper","LegacyHelper","bareScopeName","scopeHelper","reInitLocalScope","scopes","setRemoteScope","undefined","addRemoteScope","setNewLocalAndRemoteScopes","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.reInitLocalScope();\n legacyHelper.scopes.setRemoteScope(undefined, undefined, opts.bareScopeName);\n legacyHelper.scopeHelper.addRemoteScope();\n } else {\n legacyHelper.scopeHelper.setNewLocalAndRemoteScopes();\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,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,MAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,QAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,OAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,aAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,YAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAwD,SAAAC,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAIxD,MAAMG,WAAW,GAAGA,CAAA,KAAMC,OAAO,CAACC,IAAI,CAACC,QAAQ,CAAC,SAAS,CAAC;;AAE1D;AACA;AACA;AACA;AACA;AACA;AACA;AACO,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AAE;EACnE,IAAIjC,WAAW,CAAC,CAAC,EAAE;EACnB,MAAM;IAAEqB,aAAa;IAAEC;EAAgB,CAAC,GAAGW,aAAa;EACxD,MAAMC,OAAO,CAACC,GAAG,CAAC,CAACd,aAAa,EAAEC,eAAe,CAAC,CAACc,GAAG,CAAEC,CAAC,IAAKC,kBAAE,CAACC,MAAM,CAACF,CAAC,CAAC,CAAC,CAAC;AAC9E;AAEO,eAAeG,kBAAkBA,CAACnB,aAAqB,EAAEoB,GAAW,EAAEC,GAAQ,EAAE;EACrF,MAAMC,mBAAmB,GAAGC,eAAI,CAACC,IAAI,CAACxB,aAAa,EAAE,iBAAiB,CAAC;EACvE,MAAMyB,OAAO,GAAG,MAAMR,kBAAE,CAACS,QAAQ,CAACJ,mBAAmB,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/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@teambit/workspace.testing.mock-workspace",
3
- "version": "0.0.52",
3
+ "version": "0.0.54",
4
4
  "homepage": "https://bit.cloud/teambit/workspace/testing/mock-workspace",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.workspace",
8
8
  "name": "testing/mock-workspace",
9
- "version": "0.0.52"
9
+ "version": "0.0.54"
10
10
  },
11
11
  "dependencies": {
12
12
  "comment-json": "4.2.5",
13
13
  "fs-extra": "10.0.0",
14
- "@teambit/legacy.e2e-helper": "0.0.25"
14
+ "@teambit/legacy.e2e-helper": "0.0.27"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@types/fs-extra": "9.0.7",
18
18
  "@types/mocha": "9.1.0",
19
- "@types/jest": "26.0.20",
20
- "@types/node": "22.10.5"
19
+ "chai": "4.3.0",
20
+ "@teambit/node.envs.node-babel-mocha": "0.1.4"
21
21
  },
22
22
  "peerDependencies": {},
23
23
  "license": "Apache-2.0",
package/types/asset.d.ts CHANGED
@@ -5,12 +5,12 @@ declare module '*.png' {
5
5
  declare module '*.svg' {
6
6
  import type { FunctionComponent, SVGProps } from 'react';
7
7
 
8
- export const ReactComponent: FunctionComponent<SVGProps<SVGSVGElement> & { title?: string }>;
8
+ export const ReactComponent: FunctionComponent<
9
+ SVGProps<SVGSVGElement> & { title?: string }
10
+ >;
9
11
  const src: string;
10
12
  export default src;
11
13
  }
12
-
13
- // @TODO Gilad
14
14
  declare module '*.jpg' {
15
15
  const value: any;
16
16
  export = value;
@@ -27,3 +27,15 @@ declare module '*.bmp' {
27
27
  const value: any;
28
28
  export = value;
29
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
+ }
@@ -1,7 +0,0 @@
1
- ;
2
- ;
3
-
4
- export const compositions = [];
5
- export const overview = [];
6
-
7
- export const compositions_metadata = {"compositions":[]};