@whook/create 10.0.2 → 10.0.5

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.
@@ -1,29 +1,29 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`initProject should fail with access problems 1`] = `
4
- Object {
5
- "ensureDirCalls": Array [
6
- Array [
4
+ {
5
+ "ensureDirCalls": [
6
+ [
7
7
  "/home/whoiam/projects/yolo",
8
8
  ],
9
9
  ],
10
10
  "errorCode": "E_PROJECT_DIR",
11
- "errorParams": Array [
11
+ "errorParams": [
12
12
  "/home/whoiam/projects/yolo",
13
13
  ],
14
- "inquirerPromptCalls": Array [
15
- Array [
16
- Array [
17
- Object {
14
+ "inquirerPromptCalls": [
15
+ [
16
+ [
17
+ {
18
18
  "default": "new-whook-project",
19
19
  "message": "What's this new project name",
20
20
  "name": "projectName",
21
21
  },
22
22
  ],
23
23
  ],
24
- Array [
25
- Array [
26
- Object {
24
+ [
25
+ [
26
+ {
27
27
  "default": "/home/whoiam/projects/super-project",
28
28
  "message": "Provide the project's directory",
29
29
  "name": "projectDirectory",
@@ -31,52 +31,52 @@ Object {
31
31
  ],
32
32
  ],
33
33
  ],
34
- "lockReleaseCalls": Array [
35
- Array [
34
+ "lockReleaseCalls": [
35
+ [
36
36
  "cli:input",
37
37
  ],
38
- Array [
38
+ [
39
39
  "cli:input",
40
40
  ],
41
41
  ],
42
- "lockTakeCalls": Array [
43
- Array [
42
+ "lockTakeCalls": [
43
+ [
44
44
  "cli:input",
45
45
  ],
46
46
  ],
47
- "logCalls": Array [
48
- Array [
47
+ "logCalls": [
48
+ [
49
49
  "debug",
50
50
  "🏁 - Initializing project...",
51
51
  ],
52
- Array [
52
+ [
53
53
  "error",
54
- "Cannot create the project's directory: \\"/home/whoiam/projects/yolo\\"",
54
+ "Cannot create the project's directory: "/home/whoiam/projects/yolo"",
55
55
  ],
56
56
  ],
57
57
  }
58
58
  `;
59
59
 
60
60
  exports[`initProject should work 1`] = `
61
- Object {
62
- "ensureDirCalls": Array [
63
- Array [
61
+ {
62
+ "ensureDirCalls": [
63
+ [
64
64
  "/home/whoiam/projects/yolo",
65
65
  ],
66
66
  ],
67
- "inquirerPromptCalls": Array [
68
- Array [
69
- Array [
70
- Object {
67
+ "inquirerPromptCalls": [
68
+ [
69
+ [
70
+ {
71
71
  "default": "new-whook-project",
72
72
  "message": "What's this new project name",
73
73
  "name": "projectName",
74
74
  },
75
75
  ],
76
76
  ],
77
- Array [
78
- Array [
79
- Object {
77
+ [
78
+ [
79
+ {
80
80
  "default": "/home/whoiam/projects/super-project",
81
81
  "message": "Provide the project's directory",
82
82
  "name": "projectDirectory",
@@ -84,23 +84,23 @@ Object {
84
84
  ],
85
85
  ],
86
86
  ],
87
- "lockReleaseCalls": Array [
88
- Array [
87
+ "lockReleaseCalls": [
88
+ [
89
89
  "cli:input",
90
90
  ],
91
91
  ],
92
- "lockTakeCalls": Array [
93
- Array [
92
+ "lockTakeCalls": [
93
+ [
94
94
  "cli:input",
95
95
  ],
96
96
  ],
97
- "logCalls": Array [
98
- Array [
97
+ "logCalls": [
98
+ [
99
99
  "debug",
100
100
  "🏁 - Initializing project...",
101
101
  ],
102
102
  ],
103
- "project": Object {
103
+ "project": {
104
104
  "directory": "/home/whoiam/projects/yolo",
105
105
  "name": "super-project",
106
106
  },
@@ -1,4 +1,4 @@
1
- import { jest } from '@jest/globals';
1
+ import { describe, it, beforeEach, jest, expect } from '@jest/globals';
2
2
  import _inquirer from 'inquirer';
3
3
  import initAuthor from './author.js';
4
4
  import { YError } from 'yerror';