@teambit/lanes 0.0.460 → 0.0.462
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/lanes.spec.js
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
require("core-js/modules/es.promise.js");
|
4
|
+
function _chai() {
|
5
|
+
const data = require("chai");
|
6
|
+
_chai = function () {
|
7
|
+
return data;
|
8
|
+
};
|
9
|
+
return data;
|
10
|
+
}
|
4
11
|
function _harmonyTesting() {
|
5
12
|
const data = require("@teambit/harmony.testing.load-aspect");
|
6
13
|
_harmonyTesting = function () {
|
@@ -29,10 +36,33 @@ function _lanes() {
|
|
29
36
|
};
|
30
37
|
return data;
|
31
38
|
}
|
39
|
+
// describe('LanesAspect', function () {
|
40
|
+
// let lanes: LanesMain;
|
41
|
+
// let workspaceData: WorkspaceData;
|
42
|
+
// beforeAll(async () => {
|
43
|
+
// workspaceData = mockWorkspace();
|
44
|
+
// const { workspacePath } = workspaceData;
|
45
|
+
// await mockComponents(workspacePath);
|
46
|
+
// lanes = await loadAspect(LanesAspect, workspacePath);
|
47
|
+
// await lanes.createLane('stage');
|
48
|
+
// });
|
49
|
+
// afterAll(async () => {
|
50
|
+
// await destroyWorkspace(workspaceData);
|
51
|
+
// });
|
52
|
+
// describe('getLanes()', () => {
|
53
|
+
// it('should list all lanes', async () => {
|
54
|
+
// const currentLanes = await lanes.getLanes({});
|
55
|
+
// expect(currentLanes).toBeDefined();
|
56
|
+
// expect(currentLanes[0].name).toEqual('stage');
|
57
|
+
// });
|
58
|
+
// });
|
59
|
+
// });
|
60
|
+
|
32
61
|
describe('LanesAspect', function () {
|
62
|
+
this.timeout(0);
|
33
63
|
let lanes;
|
34
64
|
let workspaceData;
|
35
|
-
|
65
|
+
before(async () => {
|
36
66
|
workspaceData = (0, _workspaceTesting().mockWorkspace)();
|
37
67
|
const {
|
38
68
|
workspacePath
|
@@ -41,14 +71,14 @@ describe('LanesAspect', function () {
|
|
41
71
|
lanes = await (0, _harmonyTesting().loadAspect)(_lanes().LanesAspect, workspacePath);
|
42
72
|
await lanes.createLane('stage');
|
43
73
|
});
|
44
|
-
|
74
|
+
after(async () => {
|
45
75
|
await (0, _workspaceTesting().destroyWorkspace)(workspaceData);
|
46
76
|
});
|
47
77
|
describe('getLanes()', () => {
|
48
78
|
it('should list all lanes', async () => {
|
49
79
|
const currentLanes = await lanes.getLanes({});
|
50
|
-
expect(currentLanes).
|
51
|
-
expect(currentLanes[0].name).
|
80
|
+
(0, _chai().expect)(currentLanes).to.have.lengthOf(1);
|
81
|
+
(0, _chai().expect)(currentLanes[0].name).to.equal('stage');
|
52
82
|
});
|
53
83
|
});
|
54
84
|
});
|
package/dist/lanes.spec.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["describe","lanes","workspaceData","
|
1
|
+
{"version":3,"names":["describe","timeout","lanes","workspaceData","before","mockWorkspace","workspacePath","mockComponents","loadAspect","LanesAspect","createLane","after","destroyWorkspace","it","currentLanes","getLanes","expect","to","have","lengthOf","name","equal"],"sources":["lanes.spec.ts"],"sourcesContent":["import { expect } from 'chai';\nimport { loadAspect } from '@teambit/harmony.testing.load-aspect';\nimport { mockWorkspace, destroyWorkspace, WorkspaceData } from '@teambit/workspace.testing.mock-workspace';\nimport { mockComponents } from '@teambit/component.testing.mock-components';\nimport { LanesAspect } from './lanes.aspect';\nimport { LanesMain } from './lanes.main.runtime';\n\n// describe('LanesAspect', function () {\n// let lanes: LanesMain;\n// let workspaceData: WorkspaceData;\n// beforeAll(async () => {\n// workspaceData = mockWorkspace();\n// const { workspacePath } = workspaceData;\n// await mockComponents(workspacePath);\n// lanes = await loadAspect(LanesAspect, workspacePath);\n// await lanes.createLane('stage');\n// });\n// afterAll(async () => {\n// await destroyWorkspace(workspaceData);\n// });\n// describe('getLanes()', () => {\n// it('should list all lanes', async () => {\n// const currentLanes = await lanes.getLanes({});\n// expect(currentLanes).toBeDefined();\n// expect(currentLanes[0].name).toEqual('stage');\n// });\n// });\n// });\n\ndescribe('LanesAspect', function () {\n this.timeout(0);\n let lanes: LanesMain;\n let workspaceData: WorkspaceData;\n before(async () => {\n workspaceData = mockWorkspace();\n const { workspacePath } = workspaceData;\n await mockComponents(workspacePath);\n lanes = await loadAspect(LanesAspect, workspacePath);\n await lanes.createLane('stage');\n });\n after(async () => {\n await destroyWorkspace(workspaceData);\n });\n describe('getLanes()', () => {\n it('should list all lanes', async () => {\n const currentLanes = await lanes.getLanes({});\n expect(currentLanes).to.have.lengthOf(1);\n expect(currentLanes[0].name).to.equal('stage');\n });\n });\n});\n"],"mappings":";;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEAA,QAAQ,CAAC,aAAa,EAAE,YAAY;EAClC,IAAI,CAACC,OAAO,CAAC,CAAC,CAAC;EACf,IAAIC,KAAgB;EACpB,IAAIC,aAA4B;EAChCC,MAAM,CAAC,YAAY;IACjBD,aAAa,GAAG,IAAAE,iCAAa,GAAE;IAC/B,MAAM;MAAEC;IAAc,CAAC,GAAGH,aAAa;IACvC,MAAM,IAAAI,kCAAc,EAACD,aAAa,CAAC;IACnCJ,KAAK,GAAG,MAAM,IAAAM,4BAAU,EAACC,oBAAW,EAAEH,aAAa,CAAC;IACpD,MAAMJ,KAAK,CAACQ,UAAU,CAAC,OAAO,CAAC;EACjC,CAAC,CAAC;EACFC,KAAK,CAAC,YAAY;IAChB,MAAM,IAAAC,oCAAgB,EAACT,aAAa,CAAC;EACvC,CAAC,CAAC;EACFH,QAAQ,CAAC,YAAY,EAAE,MAAM;IAC3Ba,EAAE,CAAC,uBAAuB,EAAE,YAAY;MACtC,MAAMC,YAAY,GAAG,MAAMZ,KAAK,CAACa,QAAQ,CAAC,CAAC,CAAC,CAAC;MAC7C,IAAAC,cAAM,EAACF,YAAY,CAAC,CAACG,EAAE,CAACC,IAAI,CAACC,QAAQ,CAAC,CAAC,CAAC;MACxC,IAAAH,cAAM,EAACF,YAAY,CAAC,CAAC,CAAC,CAACM,IAAI,CAAC,CAACH,EAAE,CAACI,KAAK,CAAC,OAAO,CAAC;IAChD,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
Binary file
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/lanes",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.462",
|
4
4
|
"homepage": "https://bit.dev/teambit/lanes/lanes",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.lanes",
|
8
8
|
"name": "lanes",
|
9
|
-
"version": "0.0.
|
9
|
+
"version": "0.0.462"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "2.4.2",
|
@@ -17,36 +17,38 @@
|
|
17
17
|
"@babel/runtime": "7.20.0",
|
18
18
|
"core-js": "^3.0.0",
|
19
19
|
"@teambit/harmony": "0.3.3",
|
20
|
-
"@teambit/bit-error": "0.0.
|
21
|
-
"@teambit/lane-id": "0.0.
|
22
|
-
"@teambit/lanes.ui.models.lanes-model": "0.0.
|
23
|
-
"@teambit/cli": "0.0.
|
24
|
-
"@teambit/scope": "0.0.
|
25
|
-
"@teambit/workspace": "0.0.
|
26
|
-
"@teambit/graphql": "0.0.
|
27
|
-
"@teambit/community": "0.0.
|
28
|
-
"@teambit/component": "0.0.
|
29
|
-
"@teambit/export": "0.0.
|
30
|
-
"@teambit/importer": "0.0.
|
31
|
-
"@teambit/lanes.modules.diff": "0.0.
|
32
|
-
"@teambit/legacy-bit-id": "0.0.
|
33
|
-
"@teambit/logger": "0.0.
|
34
|
-
"@teambit/merging": "0.0.
|
20
|
+
"@teambit/bit-error": "0.0.402",
|
21
|
+
"@teambit/lane-id": "0.0.115",
|
22
|
+
"@teambit/lanes.ui.models.lanes-model": "0.0.20",
|
23
|
+
"@teambit/cli": "0.0.597",
|
24
|
+
"@teambit/scope": "0.0.890",
|
25
|
+
"@teambit/workspace": "0.0.890",
|
26
|
+
"@teambit/graphql": "0.0.890",
|
27
|
+
"@teambit/community": "0.0.145",
|
28
|
+
"@teambit/component": "0.0.890",
|
29
|
+
"@teambit/export": "0.0.890",
|
30
|
+
"@teambit/importer": "0.0.319",
|
31
|
+
"@teambit/lanes.modules.diff": "0.0.232",
|
32
|
+
"@teambit/legacy-bit-id": "0.0.418",
|
33
|
+
"@teambit/logger": "0.0.690",
|
34
|
+
"@teambit/merging": "0.0.205",
|
35
35
|
"@teambit/design.ui.pages.not-found": "0.0.364",
|
36
|
-
"@teambit/lanes.hooks.use-lanes": "0.0.
|
37
|
-
"@teambit/lanes.hooks.use-viewed-lane-from-url": "0.0.
|
38
|
-
"@teambit/lanes.ui.lane-overview": "0.0.
|
36
|
+
"@teambit/lanes.hooks.use-lanes": "0.0.58",
|
37
|
+
"@teambit/lanes.hooks.use-viewed-lane-from-url": "0.0.20",
|
38
|
+
"@teambit/lanes.ui.lane-overview": "0.0.20",
|
39
39
|
"@teambit/lanes.ui.menus.lanes-overview-menu": "0.0.2",
|
40
|
-
"@teambit/lanes.ui.menus.use-lanes-menu": "0.0.
|
41
|
-
"@teambit/lanes.ui.navigation.lane-switcher": "0.0.
|
42
|
-
"@teambit/sidebar": "0.0.
|
40
|
+
"@teambit/lanes.ui.menus.use-lanes-menu": "0.0.20",
|
41
|
+
"@teambit/lanes.ui.navigation.lane-switcher": "0.0.20",
|
42
|
+
"@teambit/sidebar": "0.0.890",
|
43
43
|
"@teambit/ui-foundation.ui.menu": "0.0.494",
|
44
44
|
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.497",
|
45
|
-
"@teambit/ui": "0.0.
|
45
|
+
"@teambit/ui": "0.0.890"
|
46
46
|
},
|
47
47
|
"devDependencies": {
|
48
48
|
"@types/react": "^17.0.8",
|
49
49
|
"@types/lodash": "4.14.165",
|
50
|
+
"chai": "4.3.0",
|
51
|
+
"@types/chai": "4.2.15",
|
50
52
|
"@types/mocha": "9.1.0",
|
51
53
|
"@types/testing-library__jest-dom": "5.9.5",
|
52
54
|
"@types/jest": "^26.0.0",
|
@@ -58,7 +60,7 @@
|
|
58
60
|
},
|
59
61
|
"peerDependencies": {
|
60
62
|
"react-router-dom": "^6.0.0",
|
61
|
-
"@teambit/legacy": "1.0.
|
63
|
+
"@teambit/legacy": "1.0.380",
|
62
64
|
"react-dom": "^16.8.0 || ^17.0.0",
|
63
65
|
"react": "^16.8.0 || ^17.0.0"
|
64
66
|
},
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.lanes_lanes@0.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.lanes_lanes@0.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.lanes_lanes@0.0.462/dist/lanes.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.lanes_lanes@0.0.462/dist/lanes.docs.mdx';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
Binary file
|