Skip to content

Commit

Permalink
Fix no test found message
Browse files Browse the repository at this point in the history
  • Loading branch information
jeparlefrancais committed Mar 21, 2024
1 parent 40560ac commit 4421932
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/jest-core/src/runJest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -318,16 +318,11 @@ local function runJest(ref: {
local hasTests = #allTests > 0

if not hasTests then
local noTestsFoundMessage = getNoTestsFoundMessage(testRunData, globalConfig)

if
globalConfig.passWithNoTests
-- ROBLOX deviation START: not supported
-- or globalConfig.findRelatedTests
-- or globalConfig.lastCommit
-- or globalConfig.onlyChanged
-- ROBLOX deviation END
then
local noTestsFound = getNoTestsFoundMessage(testRunData, globalConfig)
local exitWith0 = noTestsFound.exitWith0
local noTestsFoundMessage = noTestsFound.message

if exitWith0 then
CustomConsole.new(outputStream, outputStream):log(noTestsFoundMessage)
else
CustomConsole.new(outputStream, outputStream):error(noTestsFoundMessage)
Expand Down

0 comments on commit 4421932

Please sign in to comment.