Smart configuration loader
0
fork

Configure Feed

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

test: update tests

+20 -20
.configrc .testrc
+20 -20
test/index.test.ts
··· 53 53 "$test": { 54 54 "envConfig": true, 55 55 "extends": [ 56 - "./config.dev", 56 + "./test.config.dev", 57 57 ], 58 58 }, 59 59 "array": [ ··· 94 94 "$test": { 95 95 "envConfig": true, 96 96 "extends": [ 97 - "./config.dev", 97 + "./test.config.dev", 98 98 ], 99 99 }, 100 100 "array": [ ··· 106 106 "configFile": true, 107 107 "envConfig": true, 108 108 "extends": [ 109 - "./config.dev", 109 + "./test.config.dev", 110 110 [ 111 111 "c12-npm-test", 112 112 ], ··· 120 120 "overriden": false, 121 121 "theme": "./theme", 122 122 }, 123 - "configFile": "config", 123 + "configFile": "test.config", 124 124 "cwd": "<path>/fixture", 125 125 }, 126 126 { ··· 128 128 "rcFile": true, 129 129 "testConfig": true, 130 130 }, 131 - "configFile": ".configrc", 131 + "configFile": ".testrc", 132 132 }, 133 133 { 134 134 "config": { ··· 144 144 "secondary": "theme_secondary", 145 145 }, 146 146 }, 147 - "configFile": "<path>/fixture/theme/config.json5", 147 + "configFile": "<path>/fixture/theme/test.config.json5", 148 148 "cwd": "<path>/fixture/theme", 149 149 "meta": {}, 150 - "source": "config", 150 + "source": "test.config", 151 151 "sourceOptions": {}, 152 152 }, 153 153 { ··· 167 167 "text": "base_text", 168 168 }, 169 169 }, 170 - "configFile": "<path>/fixture/.base/config.jsonc", 170 + "configFile": "<path>/fixture/.base/test.config.jsonc", 171 171 "cwd": "<path>/fixture/.base", 172 172 "meta": { 173 173 "name": "base", 174 174 "version": "1.0.0", 175 175 }, 176 - "source": "config", 176 + "source": "test.config", 177 177 "sourceOptions": {}, 178 178 }, 179 179 { 180 180 "config": { 181 181 "devConfig": true, 182 182 }, 183 - "configFile": "<path>/fixture/config.dev.ts", 183 + "configFile": "<path>/fixture/test.config.dev.ts", 184 184 "cwd": "<path>/fixture", 185 185 "meta": {}, 186 - "source": "./config.dev", 186 + "source": "./test.config.dev", 187 187 "sourceOptions": {}, 188 188 }, 189 189 { 190 190 "config": { 191 191 "npmConfig": true, 192 192 }, 193 - "configFile": "<path>/fixture/node_modules/c12-npm-test/config.ts", 193 + "configFile": "<path>/fixture/node_modules/c12-npm-test/test.config.ts", 194 194 "cwd": "<path>/fixture/node_modules/c12-npm-test", 195 195 "meta": {}, 196 - "source": "<path>/fixture/node_modules/c12-npm-test/config.ts", 196 + "source": "<path>/fixture/node_modules/c12-npm-test/test.config.ts", 197 197 "sourceOptions": {}, 198 198 }, 199 199 { 200 200 "config": { 201 201 "githubLayer": true, 202 202 }, 203 - "configFile": "<path>/fixture/node_modules/.c12/gh_unjs_c12_vsPD2sVEDo/config.ts", 203 + "configFile": "<path>/fixture/node_modules/.c12/gh_unjs_c12_vsPD2sVEDo/test.config.ts", 204 204 "cwd": "<path>/fixture/node_modules/.c12/gh_unjs_c12_vsPD2sVEDo", 205 205 "meta": {}, 206 - "source": "config", 206 + "source": "test.config", 207 207 "sourceOptions": { 208 208 "giget": {}, 209 209 }, ··· 231 231 "$test": { 232 232 "envConfig": true, 233 233 "extends": [ 234 - "./config.dev", 234 + "./test.config.dev", 235 235 ], 236 236 }, 237 237 "array": [ ··· 274 274 >[]; 275 275 276 276 const configLayer = transformdLayers.find( 277 - (layer) => layer.configFile === "config", 277 + (layer) => layer.configFile === "test.config", 278 278 )!; 279 279 expect(Object.keys(configLayer.config!)).toContain("$test"); 280 280 281 - const baseConfigLay = transformdLayers.find( 282 - (layer) => layer.configFile === "<path>/fixture/.base/config.jsonc", 281 + const baseLayerConfig = transformdLayers.find( 282 + (layer) => layer.configFile === "<path>/fixture/.base/test.config.jsonc", 283 283 )!; 284 - expect(Object.keys(baseConfigLay.config!)).toContain("$env"); 284 + expect(Object.keys(baseLayerConfig.config!)).toContain("$env"); 285 285 }); 286 286 });