Skip to content

Commit

Permalink
ci: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mizdra committed Feb 11, 2023
1 parent 9921bb4 commit 4a9655b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion benchmark/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export async function createFixtures(fixturesDirPath, cases) {
/**
* @param {Core} core
*/
export async function runBenchmarkForEachFix(core) {
export async function runAllFixes(core) {
const results = await core.lint();
{
const undo = await core.applyAutoFixes(results, ['semi', 'arrow-body-style']);
Expand Down
4 changes: 2 additions & 2 deletions benchmark/run-cachegrind-benchmarking.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { join, dirname } from 'path';
import { runBenchmarkForEachFix } from './helper.js';
import { runAllFixes } from './helper.js';
import { fileURLToPath } from 'url';
import { Core } from '../dist/core.js';

const __dirname = join(dirname(fileURLToPath(import.meta.url)));

const core = new Core({ patterns: ['fixtures'], cwd: __dirname });
await runBenchmarkForEachFix(core);
await runAllFixes(core);

0 comments on commit 4a9655b

Please sign in to comment.