Skip to content

Commit

Permalink
Need a different way to check
Browse files Browse the repository at this point in the history
  • Loading branch information
JadenSimon committed Jun 28, 2024
1 parent 3fdd294 commit de2f18c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/testing/internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { isNonNullable } from '../utils'
// Commands are treated like scripts in `package.json`
const commandsDirective = '!commands'

function parseCommands(text: string, synapseCmd = isSelfSea() ? undefined : 'syn') {
function parseCommands(text: string) {
const lines = text.split('\n')
const directive = lines.findIndex(l => l.startsWith(`// ${commandsDirective}`))
if (directive === -1) {
Expand All @@ -32,9 +32,9 @@ function parseCommands(text: string, synapseCmd = isSelfSea() ? undefined : 'syn
}

// Used to support partial dev builds
if (synapseCmd) {
return commands.map(cmd => cmd.replaceAll('synapse', synapseCmd))
}
// if (synapseCmd) {
// return commands.map(cmd => cmd.replaceAll('synapse', synapseCmd))
// }

return commands
}
Expand Down

0 comments on commit de2f18c

Please sign in to comment.