Skip to content

Commit

Permalink
feat: no-skip flag (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
harrysolovay committed May 3, 2023
1 parent 43f3c80 commit 56fde66
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ import * as path from "./deps/std/path.ts"
import { readerFromStreamReader, writeAll } from "./deps/std/streams.ts"
import { parseFrontmatter } from "./frontmatter.ts"

const { _: includePatterns, reload, ...rest } = parseFlags(Deno.args, {
const { _: includePatterns, reload, "no-skip": noSkip, ...rest } = parseFlags(Deno.args, {
alias: {
b: "browser",
c: "concurrency",
p: "project",
r: "reload",
},
boolean: ["no-skip"],
string: ["browser", "concurrency", "project", "reload"],
default: {
concurrency: Infinity,
Expand Down Expand Up @@ -66,8 +67,8 @@ await runWithConcurrency(
},
})
const quotedPathname = `"${pathname}"`
if (frontmatter.test_skip) {
console.log(yellow("Skipping"), quotedPathname)
if (!noSkip && frontmatter.test_skip) {
console.log(yellow("Skipped"), quotedPathname)
skipped++
return
}
Expand Down

0 comments on commit 56fde66

Please sign in to comment.