docker-composer 5.2.1 → 5.2.2

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.
@@ -0,0 +1,63 @@
1
+ TN:
2
+ SF:index.js
3
+ FN:8,generateCompose
4
+ FNF:1
5
+ FNH:1
6
+ FNDA:2,generateCompose
7
+ DA:1,1
8
+ DA:2,1
9
+ DA:3,1
10
+ DA:4,1
11
+ DA:5,1
12
+ DA:6,1
13
+ DA:7,1
14
+ DA:8,2
15
+ DA:9,2
16
+ DA:10,2
17
+ DA:11,1
18
+ DA:12,1
19
+ DA:13,1
20
+ DA:14,1
21
+ LF:14
22
+ LH:14
23
+ BRDA:8,0,0,2
24
+ BRF:1
25
+ BRH:1
26
+ end_of_record
27
+ TN:
28
+ SF:lib/lib.js
29
+ FN:12,generateCompose
30
+ FNF:1
31
+ FNH:1
32
+ FNDA:2,generateCompose
33
+ DA:1,1
34
+ DA:2,1
35
+ DA:3,1
36
+ DA:4,1
37
+ DA:5,1
38
+ DA:6,1
39
+ DA:7,1
40
+ DA:8,1
41
+ DA:9,1
42
+ DA:10,1
43
+ DA:11,1
44
+ DA:12,2
45
+ DA:13,2
46
+ DA:14,2
47
+ DA:15,2
48
+ DA:16,2
49
+ DA:17,1
50
+ DA:18,1
51
+ DA:19,1
52
+ DA:20,1
53
+ DA:21,1
54
+ DA:22,1
55
+ DA:23,1
56
+ DA:24,1
57
+ LF:24
58
+ LH:24
59
+ BRDA:12,0,0,2
60
+ BRDA:16,1,0,1
61
+ BRF:2
62
+ BRH:2
63
+ end_of_record
package/jest.config.ts ADDED
@@ -0,0 +1,194 @@
1
+ /** @jest-config-loader ts-node */
2
+ import type {Config} from 'jest';
3
+
4
+ const config: Config = {
5
+ // All imported modules in your tests should be mocked automatically
6
+ // automock: false,
7
+
8
+ // Stop running tests after `n` failures
9
+ // bail: 0,
10
+
11
+ // The directory where Jest should store its cached dependency information
12
+ // cacheDirectory: "/private/var/folders/tn/bk75l9zs4hs7xcvx9qp270xm0000gn/T/jest_dx",
13
+
14
+ // Automatically clear mock calls, instances, contexts and results before every test
15
+ clearMocks: true,
16
+
17
+ // Indicates whether the coverage information should be collected while executing the test
18
+ collectCoverage: true,
19
+
20
+ // An array of glob patterns indicating a set of files for which coverage information should be collected
21
+ // collectCoverageFrom: undefined,
22
+
23
+ // The directory where Jest should output its coverage files
24
+ coverageDirectory: "coverage",
25
+
26
+ // An array of regexp pattern strings used to skip coverage collection
27
+ // coveragePathIgnorePatterns: [
28
+ // "/node_modules/"
29
+ // ],
30
+
31
+ // Indicates which provider should be used to instrument code for coverage
32
+ coverageProvider: "v8",
33
+
34
+ // A list of reporter names that Jest uses when writing coverage reports
35
+ // coverageReporters: [
36
+ // "json",
37
+ // "text",
38
+ // "lcov",
39
+ // "clover"
40
+ // ],
41
+
42
+ // An object that configures minimum threshold enforcement for coverage results
43
+ // coverageThreshold: undefined,
44
+
45
+ // A path to a custom dependency extractor
46
+ // dependencyExtractor: undefined,
47
+
48
+ // Make calling deprecated APIs throw helpful error messages
49
+ // errorOnDeprecated: false,
50
+
51
+ // The default configuration for fake timers
52
+ // fakeTimers: {
53
+ // "enableGlobally": false
54
+ // },
55
+
56
+ // Force coverage collection from ignored files using an array of glob patterns
57
+ // forceCoverageMatch: [],
58
+
59
+ // A path to a module which exports an async function that is triggered once before all test suites
60
+ // globalSetup: undefined,
61
+
62
+ // A path to a module which exports an async function that is triggered once after all test suites
63
+ // globalTeardown: undefined,
64
+
65
+ // A set of global variables that need to be available in all test environments
66
+ // globals: {},
67
+
68
+ // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.
69
+ // maxWorkers: "50%",
70
+
71
+ // An array of directory names to be searched recursively up from the requiring module's location
72
+ // moduleDirectories: [
73
+ // "node_modules"
74
+ // ],
75
+
76
+ // An array of file extensions your modules use
77
+ // moduleFileExtensions: [
78
+ // "js",
79
+ // "mjs",
80
+ // "cjs",
81
+ // "jsx",
82
+ // "ts",
83
+ // "tsx",
84
+ // "json",
85
+ // "node"
86
+ // ],
87
+
88
+ // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
89
+ // moduleNameMapper: {},
90
+
91
+ // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
92
+ // modulePathIgnorePatterns: [],
93
+
94
+ // Activates notifications for test results
95
+ // notify: false,
96
+
97
+ // An enum that specifies notification mode. Requires { notify: true }
98
+ // notifyMode: "failure-change",
99
+
100
+ // A preset that is used as a base for Jest's configuration
101
+ // preset: undefined,
102
+
103
+ // Run tests from one or more projects
104
+ // projects: undefined,
105
+
106
+ // Use this configuration option to add custom reporters to Jest
107
+ // reporters: undefined,
108
+
109
+ // Automatically reset mock state before every test
110
+ // resetMocks: false,
111
+
112
+ // Reset the module registry before running each individual test
113
+ // resetModules: false,
114
+
115
+ // A path to a custom resolver
116
+ // resolver: undefined,
117
+
118
+ // Automatically restore mock state and implementation before every test
119
+ // restoreMocks: false,
120
+
121
+ // The root directory that Jest should scan for tests and modules within
122
+ // rootDir: undefined,
123
+
124
+ // A list of paths to directories that Jest should use to search for files in
125
+ // roots: [
126
+ // "<rootDir>"
127
+ // ],
128
+
129
+ // Allows you to use a custom runner instead of Jest's default test runner
130
+ // runner: "jest-runner",
131
+
132
+ // The paths to modules that run some code to configure or set up the testing environment before each test
133
+ // setupFiles: [],
134
+
135
+ // A list of paths to modules that run some code to configure or set up the testing framework before each test
136
+ // setupFilesAfterEnv: [],
137
+
138
+ // The number of seconds after which a test is considered as slow and reported as such in the results.
139
+ // slowTestThreshold: 5,
140
+
141
+ // A list of paths to snapshot serializer modules Jest should use for snapshot testing
142
+ // snapshotSerializers: [],
143
+
144
+ // The test environment that will be used for testing
145
+ // testEnvironment: "jest-environment-node",
146
+
147
+ // Options that will be passed to the testEnvironment
148
+ // testEnvironmentOptions: {},
149
+
150
+ // Adds a location field to test results
151
+ // testLocationInResults: false,
152
+
153
+ // The glob patterns Jest uses to detect test files
154
+ testMatch: [
155
+ "**/tests/**/*Test.js"
156
+ ],
157
+
158
+ // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
159
+ // testPathIgnorePatterns: [
160
+ // "/node_modules/"
161
+ // ],
162
+
163
+ // The regexp pattern or array of patterns that Jest uses to detect test files
164
+ // testRegex: [],
165
+
166
+ // This option allows the use of a custom results processor
167
+ // testResultsProcessor: undefined,
168
+
169
+ // This option allows use of a custom test runner
170
+ // testRunner: "jest-circus/runner",
171
+
172
+ // A map from regular expressions to paths to transformers
173
+ // transform: undefined,
174
+
175
+ // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
176
+ // transformIgnorePatterns: [
177
+ // "/node_modules/",
178
+ // "\\.pnp\\.[^\\/]+$"
179
+ // ],
180
+
181
+ // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
182
+ // unmockedModulePathPatterns: undefined,
183
+
184
+ // Indicates whether each individual test should be reported during the run
185
+ // verbose: undefined,
186
+
187
+ // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
188
+ // watchPathIgnorePatterns: [],
189
+
190
+ // Whether to use watchman for file crawling
191
+ // watchman: true,
192
+ };
193
+
194
+ export default config;
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "docker-composer",
3
- "version": "5.2.1",
3
+ "version": "5.2.2",
4
4
  "description": "Library for generating docker-compose.yml from JSON.",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "test": "./node_modules/mocha/bin/mocha.js ./tests/*Test.js",
8
- "coverage": "nyc npm run test",
9
7
  "generate-ts-types": "node ./scripts/compile-ts-types.js",
8
+ "test": "jest --config jest.config.ts",
10
9
  "linter": "npx eslint *.js tests/*.js"
11
10
  },
12
11
  "keywords": [
@@ -35,18 +34,10 @@
35
34
  "jsonschema": "^1.4.0"
36
35
  },
37
36
  "devDependencies": {
38
- "@eslint/js": "^9.0.0",
39
- "globals": "^16.0.0",
37
+ "@eslint/js": "^10.0.1",
38
+ "globals": "^17.0.0",
40
39
  "js-yaml": "^4.0.0",
41
40
  "json-schema-to-typescript": "^15.0.0",
42
- "mocha": "11.7.5",
43
- "nyc": "^17.0.0",
44
- "should": "13.2.3"
45
- },
46
- "nyc": {
47
- "all": true,
48
- "exclude": [
49
- "*Test.js"
50
- ]
41
+ "jest": "^30.2.0"
51
42
  }
52
43
  }