Smart configuration loader
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

test: refactor to use named configs

+6 -3
test/fixture/.base/config.jsonc test/fixture/.base/test.config.jsonc
test/fixture/.configrc test/fixture/.testrc
test/fixture/_github/config.ts test/fixture/_github/test.config.ts
+1 -1
test/fixture/_github/package.json
··· 2 2 "name": "c12-github-layer", 3 3 "version": "0.0.0", 4 4 "exports": { 5 - ".": "./config.ts" 5 + ".": "./test.config.ts" 6 6 } 7 7 }
test/fixture/config.dev.ts test/fixture/test.config.dev.ts
+1 -1
test/fixture/config.ts test/fixture/test.config.ts
··· 5 5 ["gh:unjs/c12/test/fixture/_github#main", { giget: {} }], 6 6 ], 7 7 $test: { 8 - extends: ["./config.dev"], 8 + extends: ["./test.config.dev"], 9 9 envConfig: true, 10 10 }, 11 11 colors: {
test/fixture/node_modules/c12-npm-test/config.ts test/fixture/node_modules/c12-npm-test/test.config.ts
+1 -1
test/fixture/node_modules/c12-npm-test/package.json
··· 2 2 "name": "c12-npm-test", 3 3 "version": "0.0.0", 4 4 "exports": { 5 - ".": "./config.ts" 5 + ".": "./test.config.ts" 6 6 } 7 7 }
test/fixture/theme/config.json5 test/fixture/theme/test.config.json5
+3
test/index.test.ts
··· 19 19 }>; 20 20 const { config, layers } = await loadConfig<UserConfig>({ 21 21 cwd: r("./fixture"), 22 + name: "test", 22 23 dotenv: true, 23 24 packageJson: ["c12", "c12-alt"], 24 25 globalRc: true, ··· 218 219 219 220 it("extend from git repo", async () => { 220 221 const { config } = await loadConfig({ 222 + name: "test", 221 223 cwd: r("./fixture/new_dir"), 222 224 overrides: { 223 225 extends: ["github:unjs/c12/test/fixture"], ··· 251 253 252 254 it("omit$Keys", async () => { 253 255 const { config, layers } = await loadConfig({ 256 + name: "test", 254 257 cwd: r("./fixture"), 255 258 envName: "test", 256 259 omit$Keys: true,