feat: Refactored the initialization process to return a resource defi… #156
Annotations
6 errors
|
build-and-test
Process completed with exit code 1.
|
|
test/orchestrator/initialize/initialize.test.ts > Parser integration tests > Finds codify.json files in a previous dir:
src/common/initialize-plugins.ts#L116
Error: No codify files found.
❯ Function.resolveCodifyRootPath src/common/initialize-plugins.ts:116:11
❯ Function.run src/common/initialize-plugins.ts:33:24
❯ test/orchestrator/initialize/initialize.test.ts:112:61
|
|
test/orchestrator/initialize/initialize.test.ts > Parser integration tests > Finds the correct files to initialize and initializes all files within a folder:
test/orchestrator/initialize/initialize.test.ts#L70
AssertionError: expected Project{ projectConfig: null, …(7) } to match object { …(2) }
(7 matching properties omitted from actual)
- Expected
+ Received
- Object {
- "codifyFiles": ArrayContaining [
- "/home/runner/Downloads/untitled folder/home.codify.json",
+ Project {
+ "codifyFiles": Array [
"/home/runner/Downloads/untitled folder/home-2.codify.json",
],
- "resourceConfigs": ArrayContaining [
- ObjectContaining {
- "type": "customType1",
+ "resourceConfigs": Array [
+ ResourceConfig {
+ "configClass": "resource",
+ "dependencyIds": Array [],
+ "dependsOn": Array [],
+ "name": undefined,
+ "parameters": Object {},
+ "raw": Object {
+ "type": "customType2",
},
- ObjectContaining {
+ "resourceInfo": undefined,
+ "sourceMapKey": "/home/runner/Downloads/untitled folder/home-2.codify.json#/0",
"type": "customType2",
},
],
}
❯ test/orchestrator/initialize/initialize.test.ts:70:21
|
|
test/orchestrator/import/import.test.ts > Import orchestrator tests > Can import and update an existing project (without prompting the user)(this is the no args version):
test/orchestrator/import/import.test.ts#L556
AssertionError: expected "displayImportResult" to be called once, but got 0 times
❯ test/orchestrator/import/import.test.ts:556:36
|
|
test/orchestrator/import/import.test.ts > Import orchestrator tests > Can import a resource and save it into an existing project (multiple codify files):
test/orchestrator/import/import.test.ts#L441
AssertionError: expected [ { type: 'alias', …(2) }, …(1) ] to match object [ { type: 'alias', …(2) }, …(2) ]
- Expected
+ Received
Array [
Object {
"alias": "gcdsdd",
"type": "alias",
"value": "git clone",
},
Object {
"alias": "gcc",
"type": "alias",
"value": "git commit -v",
},
- Object {
- "alias": "gc-new",
- "type": "alias",
- "value": "gc-new-value",
- },
]
❯ test/orchestrator/import/import.test.ts:441:41
|
|
src/parser/yaml/yaml-parser.test.ts > YamlParser tests > Can parse yaml files:
src/parser/yaml/yaml-parser.test.ts#L34
AssertionError: expected { contents: { …(2) }, …(1) } to match object { contents: { type: 'project', …(1) } }
(1 matching property omitted from actual)
- Expected
+ Received
Object {
"contents": Object {
"plugins": Object {
- "default": "../homebrew-plugin/src/router.ts",
+ "default": "../homebrew-plugin/src/index.ts",
},
"type": "project",
},
}
❯ src/parser/yaml/yaml-parser.test.ts:34:23
|