Add build mode to configuration
This commit is contained in:
parent
401f9d6286
commit
0166a8a567
12 changed files with 27 additions and 6 deletions
3
lib/config-utils.test.js
generated
3
lib/config-utils.test.js
generated
|
|
@ -50,6 +50,7 @@ function createTestInitConfigInputs(overrides) {
|
|||
configFile: undefined,
|
||||
dbLocation: undefined,
|
||||
configInput: undefined,
|
||||
buildModeInput: undefined,
|
||||
trapCachingEnabled: false,
|
||||
debugMode: false,
|
||||
debugArtifactName: "",
|
||||
|
|
@ -265,6 +266,7 @@ function mockListLanguages(languages) {
|
|||
// And the config we expect it to parse to
|
||||
const expectedConfig = {
|
||||
languages: [languages_1.Language.javascript],
|
||||
buildMode: "none",
|
||||
originalUserInput: {
|
||||
name: "my config",
|
||||
"disable-default-queries": true,
|
||||
|
|
@ -287,6 +289,7 @@ function mockListLanguages(languages) {
|
|||
const configFilePath = createConfigFile(inputFileContents, tempDir);
|
||||
const actualConfig = await configUtils.initConfig(createTestInitConfigInputs({
|
||||
languagesInput,
|
||||
buildModeInput: "none",
|
||||
configFile: configFilePath,
|
||||
debugArtifactName: "my-artifact",
|
||||
debugDatabaseName: "my-db",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue