feat: Refactored the initialization process to return all info about … #154
Annotations
10 errors
|
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 a resource and only display it to the user:
test/orchestrator/import/import.test.ts#L603
AssertionError: expected +0 to equal 1
- Expected
+ Received
- 1
+ 0
❯ Object.promptUserForValues test/orchestrator/import/import.test.ts:603:44
❯ MockReporter.promptUserForValues test/orchestrator/mocks/reporter.ts:93:26
❯ Function.getImportParameters src/orchestrators/import.ts:389:41
❯ Function.runNewImport src/orchestrators/import.ts:105:56
❯ Function.run src/orchestrators/import.ts:52:5
❯ test/orchestrator/import/import.test.ts:668:5
|
|
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#L366
AssertionError: expected +0 to equal 2
- Expected
+ Received
- 2
+ 0
❯ Object.promptUserForValues test/orchestrator/import/import.test.ts:366:44
❯ MockReporter.promptUserForValues test/orchestrator/mocks/reporter.ts:93:26
❯ Function.getImportParameters src/orchestrators/import.ts:389:41
❯ Function.runNewImport src/orchestrators/import.ts:105:56
❯ Function.run src/orchestrators/import.ts:52:5
❯ test/orchestrator/import/import.test.ts:426:5
|
|
test/orchestrator/import/import.test.ts > Import orchestrator tests > Can import a resource and save it into an existing project:
test/orchestrator/import/import.test.ts#L233
AssertionError: expected +0 to equal 1
- Expected
+ Received
- 1
+ 0
❯ Object.promptUserForValues test/orchestrator/import/import.test.ts:233:44
❯ MockReporter.promptUserForValues test/orchestrator/mocks/reporter.ts:93:26
❯ Function.getImportParameters src/orchestrators/import.ts:389:41
❯ Function.runNewImport src/orchestrators/import.ts:105:56
❯ Function.run src/orchestrators/import.ts:52:5
❯ test/orchestrator/import/import.test.ts:299:5
|
|
test/orchestrator/import/import.test.ts > Import orchestrator tests > Can import a resource (no project) and can save to a new file:
test/orchestrator/import/import.test.ts#L136
AssertionError: expected +0 to equal 1
- Expected
+ Received
- 1
+ 0
❯ Object.promptUserForValues test/orchestrator/import/import.test.ts:136:44
❯ MockReporter.promptUserForValues test/orchestrator/mocks/reporter.ts:93:26
❯ Function.getImportParameters src/orchestrators/import.ts:389:41
❯ Function.runNewImport src/orchestrators/import.ts:105:56
❯ Function.run src/orchestrators/import.ts:52:5
❯ test/orchestrator/import/import.test.ts:186:5
|
|
test/orchestrator/destroy/destroy.test.ts > Destroy orchestrator tests > Can handle destroying only one resource:
test/orchestrator/destroy/destroy.test.ts#L119
AssertionError: expected +0 to equal 1
- Expected
+ Received
- 1
+ 0
❯ Object.promptUserForValues test/orchestrator/destroy/destroy.test.ts:119:32
❯ MockReporter.promptUserForValues test/orchestrator/mocks/reporter.ts:93:26
❯ Function.getDestroyParameters src/orchestrators/destroy.ts:181:41
❯ Function.destroySpecificResources src/orchestrators/destroy.ts:80:58
❯ Function.run src/orchestrators/destroy.ts:36:9
❯ test/orchestrator/destroy/destroy.test.ts:144:5
|
|
test/orchestrator/destroy/destroy.test.ts > Destroy orchestrator tests > Can handle a destroy call on a resource that doesn't exist:
test/orchestrator/destroy/destroy.test.ts#L87
AssertionError: expected +0 to equal 1
- Expected
+ Received
- 1
+ 0
❯ Object.promptUserForValues test/orchestrator/destroy/destroy.test.ts:87:32
❯ MockReporter.promptUserForValues test/orchestrator/mocks/reporter.ts:93:26
❯ Function.getDestroyParameters src/orchestrators/destroy.ts:181:41
❯ Function.destroySpecificResources src/orchestrators/destroy.ts:80:58
❯ Function.run src/orchestrators/destroy.ts:36:9
❯ test/orchestrator/destroy/destroy.test.ts:103:5
|
|
test/orchestrator/destroy/destroy.test.ts > Destroy orchestrator tests > Can destroy a resource:
test/orchestrator/destroy/destroy.test.ts#L46
AssertionError: expected +0 to equal 1
- Expected
+ Received
- 1
+ 0
❯ Object.promptUserForValues test/orchestrator/destroy/destroy.test.ts:46:32
❯ MockReporter.promptUserForValues test/orchestrator/mocks/reporter.ts:93:26
❯ Function.getDestroyParameters src/orchestrators/destroy.ts:181:41
❯ Function.destroySpecificResources src/orchestrators/destroy.ts:80:58
❯ Function.run src/orchestrators/destroy.ts:36:9
❯ test/orchestrator/destroy/destroy.test.ts:71:5
|
|
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
|