Fix validateWithDefaultConfig test
This commit is contained in:
Родитель
1dedc8b9fd
Коммит
568cdee205
|
@ -13,7 +13,7 @@
|
|||
"prepublish": "npm run compile",
|
||||
"compile": "tsc",
|
||||
"test": "mocha ./out/**/*.test.js --slow 2000 --timeout 10000",
|
||||
"lint": "tslint 'src/**/*.ts'",
|
||||
"lint": "tslint -c tslint.main.json 'src/**/*.ts'",
|
||||
"e2e": "mocha ./e2e/tests/**/*.test.js --slow 2000 --timeout 10000"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
@ -201,7 +201,7 @@ export class TsLintRunner {
|
|||
private doRun(
|
||||
filePath: string,
|
||||
contents: string | typescript.Program,
|
||||
library: typeof import('tslint'),
|
||||
library: typeof import ('tslint'),
|
||||
configuration: RunConfiguration,
|
||||
warnings: string[],
|
||||
): RunResult {
|
||||
|
|
|
@ -48,8 +48,7 @@ describe('TSLintRunner', () => {
|
|||
expect(result.configFilePath).to.equal(path.join(folderPath, 'tslint.json'));
|
||||
});
|
||||
|
||||
// TODO: this picks up the root tslint.json
|
||||
it.skip('should not validate using if no tslint.json exists and validateWithDefaultConfig is false', () => {
|
||||
it('should not validate using if no tslint.json exists and validateWithDefaultConfig is false', () => {
|
||||
const filePath = path.join(testDataRoot, 'no-tslint', 'test.ts');
|
||||
const result = createTsLintRunner().runTsLint(filePath, fs.readFileSync(filePath).toString(), {
|
||||
...defaultRunConfiguration,
|
||||
|
|
|
@ -21,7 +21,7 @@ export class ConfigurationManager {
|
|||
alwaysShowRuleFailuresAsWarnings: true,
|
||||
ignoreDefinitionFiles: true,
|
||||
jsEnable: false,
|
||||
suppressWhileTypeErrorsPresent: false
|
||||
suppressWhileTypeErrorsPresent: false,
|
||||
};
|
||||
|
||||
private readonly _configUpdatedListeners = new Set<() => void>();
|
||||
|
|
Загрузка…
Ссылка в новой задаче