Skip to content

Commit

Permalink
Fix tests after path name escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
MisanthropicBit committed Mar 22, 2024
1 parent 356a87e commit 693f8c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/init_options_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe("build_spec with override", function()
assert.contains(command, "--json")
assert.contains(command, "--config=" .. config_override())
assert.contains(command, "--testNamePattern='.*'")
assert.contains(command, "./spec/basic.test.ts")
assert.contains(command, ".\\/spec\\/basic.test.ts")
assert.is.truthy(spec.context.file)
assert.is.truthy(spec.context.results_path)
assert.is.same(
Expand Down
12 changes: 6 additions & 6 deletions tests/init_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ describe("build_spec", function()
assert.contains(command, "--json")
assert.is_not.contains(command, "--config=jest.config.js")
assert.contains(command, "--testNamePattern='.*'")
assert.contains(command, "./spec/basic.test.ts")
assert.contains(command, ".\\/spec\\/basic.test.ts")
assert.is.truthy(spec.context.file)
assert.is.truthy(spec.context.results_path)
end)
Expand All @@ -253,7 +253,7 @@ describe("build_spec", function()
assert.contains(command, "--json")
assert.is_not.contains(command, "--config=jest.config.js")
assert.contains(command, "--testNamePattern='.*'")
assert.contains(command, "./spec/basic.test.ts")
assert.contains(command, ".\\/spec\\/basic.test.ts")
assert.contains(command, "--clearCache")
assert.contains(command, "--updateSnapshot")
assert.is.truthy(spec.context.file)
Expand All @@ -275,7 +275,7 @@ describe("build_spec", function()
assert.contains(command, "--json")
assert.is_not.contains(command, "--config=jest.config.js")
assert.contains(command, "--testNamePattern='.*'")
assert.contains(command, "./spec/basic.test.ts")
assert.contains(command, ".\\/spec\\/basic.test.ts")
assert.is.truthy(spec.context.file)
assert.is.truthy(spec.context.results_path)
end)
Expand All @@ -296,7 +296,7 @@ describe("build_spec", function()
assert.contains(command, "--json")
assert.is_not.contains(command, "--config=jest.config.js")
assert.contains(command, "--testNamePattern='^describe text'")
assert.contains(command, "./spec/basic.test.ts")
assert.contains(command, ".\\/spec\\/basic.test.ts")
assert.is.truthy(spec.context.file)
assert.is.truthy(spec.context.results_path)
end)
Expand All @@ -317,7 +317,7 @@ describe("build_spec", function()
assert.contains(command, "--json")
assert.is_not.contains(command, "--config=jest.config.js")
assert.contains(command, "--testNamePattern='^outer middle inner'")
assert.contains(command, "./spec/nestedDescribe.test.ts")
assert.contains(command, ".\\/spec\\/nestedDescribe.test.ts")
assert.is.truthy(spec.context.file)
assert.is.truthy(spec.context.results_path)
end)
Expand All @@ -338,7 +338,7 @@ describe("build_spec", function()
assert.contains(command, "--json")
assert.is_not.contains(command, "--config=jest.config.js")
assert.contains(command, "--testNamePattern='^outer middle inner this has a \\'$'")
assert.contains(command, "./spec/nestedDescribe.test.ts")
assert.contains(command, ".\\/spec\\/nestedDescribe.test.ts")
assert.is.truthy(spec.context.file)
assert.is.truthy(spec.context.results_path)
end)
Expand Down

0 comments on commit 693f8c1

Please sign in to comment.