diff --git a/package.json b/package.json index 1d7c2c9..ee82c5e 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "npm": ">=7" }, "scripts": { - "format": "prettier --write **/{src,test}", + "format": "prettier --write **/{src,test}/**/*.{js,ts}", "clean": "rm -rf {.,reporters,zora,assert,pta}/{node_modules,dist,package-lock.json}", "install:fresh": "npm i && npm i --workspaces", "install:ci": "npm ci --include=dev", diff --git a/zora/test/samples/no_only_mode.js b/zora/test/samples/no_only_mode.js index 81bc25c..cc9c607 100644 --- a/zora/test/samples/no_only_mode.js +++ b/zora/test/samples/no_only_mode.js @@ -1,9 +1,9 @@ -import {test, only} from 'zora'; +import { test, only } from 'zora'; -test('should not run', t => { - t.fail('I should not run '); +test('should not run', (t) => { + t.fail('I should not run '); }); -only('should run', t => { - t.ok(true, 'I ran'); +only('should run', (t) => { + t.ok(true, 'I ran'); }); diff --git a/zora/test/samples/no_only_mode_nested.js b/zora/test/samples/no_only_mode_nested.js index 3f20dcf..2fb4fe5 100644 --- a/zora/test/samples/no_only_mode_nested.js +++ b/zora/test/samples/no_only_mode_nested.js @@ -1,28 +1,28 @@ -import {test, only} from 'zora'; +import { test, only } from 'zora'; -test('should not run', t => { - t.fail('I should not run '); +test('should not run', (t) => { + t.fail('I should not run '); }); -only('should run', t => { - t.ok(true, 'I ran'); +only('should run', (t) => { + t.ok(true, 'I ran'); - t.only('keep running', t => { - t.only('keeeeeep running', t => { - t.ok(true, ' I got there'); - }); + t.only('keep running', (t) => { + t.only('keeeeeep running', (t) => { + t.ok(true, ' I got there'); }); + }); - t.test('should not run', t => { - t.fail('shouldn ot run'); - }); + t.test('should not run', (t) => { + t.fail('shouldn ot run'); + }); }); -only('should run but nothing inside', t => { - t.test('will not run', t => { - t.fail('should not run'); - }); - t.test('will not run', t => { - t.fail('should not run'); - }); +only('should run but nothing inside', (t) => { + t.test('will not run', (t) => { + t.fail('should not run'); + }); + t.test('will not run', (t) => { + t.fail('should not run'); + }); });