Lines Matching full:mode
44 enum Mode { enum
50 RESULT_EXT[Mode.DEFAULT] = '.json';
51 RESULT_EXT[Mode.AUTOFIX] = '.autofix.json';
61 * Set the IDE mode manually to enable storing information
85 // Run each test in Default and Autofix mode:
105 if (runTest(testDir, tsName, Mode.DEFAULT)) {
111 if (runTest(testDir, tsName, Mode.AUTOFIX)) {
124 function parseArgs(testDir: string, testFile: string, mode: Mode): CommandLineOptions {
137 if (mode === Mode.AUTOFIX) {
144 function compareExpectedAndActual(testDir: string, testFile: string, mode: Mode, resultNodes: TestN…
148 const resultExt = RESULT_EXT[mode]; constant
172 function runTest(testDir: string, testFile: string, mode: Mode): boolean {
173 if (mode === Mode.AUTOFIX && fs.existsSync(path.join(testDir, testFile + AUTOFIX_SKIP_EXT))) {
174 Logger.info(`Skipping test ${testFile} (${Mode[mode]} mode)`);
177 Logger.info(`Running test ${testFile} (${Mode[mode]} mode)`);
183 const cmdOptions = parseArgs(testDir, testFile, mode);
200 autofix: mode === Mode.AUTOFIX ? x.autofix : undefined,
207 const testResult = compareExpectedAndActual(testDir, testFile, mode, resultNodes);
210 writeActualResultFile(testDir, testFile, mode, resultNodes, testResult);
265 mode: Mode,
270 const resultExt = RESULT_EXT[mode]; constant