Skip to content

Commit

Permalink
chore: lock file maintenance (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored Apr 9, 2023
1 parent c8d7387 commit 22446f1
Show file tree
Hide file tree
Showing 4 changed files with 1,923 additions and 1,927 deletions.
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tasks:
PUPPETEER_CACHE_DIR=/workspace/gitpod-env-per-project/node_modules/.cache/puppeteer"
>> /home/gitpod/.bashrc
echo "eval $(gitpod-env-per-project)" >> /home/gitpod/.bashrc && source /home/gitpod/.bashrc
gitpod-env-per-project >> /home/gitpod/.bashrc && source /home/gitpod/.bashrc
init: |-
git config --global user.name "Sebastian Landwehr"
git lfs pull && yarn --frozen-lockfile
Expand Down
1 change: 1 addition & 0 deletions .renovaterc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@
]
}
],
"rangeStrategy": "auto",
"semanticCommitScope": null
}
28 changes: 14 additions & 14 deletions src/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const cli = _require.resolve('./cli.js')

const getOutputEnvCode = variables => endent`
import { pick } from '@dword-design/functions'
const env = process.env |> pick(${JSON.stringify(variables)})
for (const entry of Object.entries(env)) {
Expand All @@ -37,7 +37,7 @@ export default tester(
shell: true,
}))
|> await
|> property('stdout')
|> property('stdout'),
).toEqual('FOO: "{ \\"test\\": \\"test\\", \\"test2\\": \\"test2\\" }"')
},
'json multiline': async () => {
Expand All @@ -49,18 +49,18 @@ export default tester(
(await execaCommand(`eval "$(${cli})" && node env.js`, {
env: {
PACK_FOO: endent`
{
"test": "test",
"test2": "test2"
}
`,
{
"test": "test",
"test2": "test2"
}
`,
},
shell: true,
}))
|> await
|> property('stdout')
|> property('stdout'),
).toEqual(
'FOO: "{\\n \\"test\\": \\"test\\",\\n \\"test2\\": \\"test2\\"\\n}"'
'FOO: "{\\n \\"test\\": \\"test\\",\\n \\"test2\\": \\"test2\\"\\n}"',
)
},
'multiple variables': async () => {
Expand All @@ -77,15 +77,15 @@ export default tester(
shell: true,
}))
|> await
|> property('stdout')
|> property('stdout'),
).toEqual(endent`
FOO: "test"
BAR: "test2"
`)
},
'no package': () =>
expect(self()).rejects.toThrow(
'Name or package.json could not be found.'
'Name or package.json could not be found.',
),
scoped: async () => {
await outputFiles({
Expand All @@ -100,7 +100,7 @@ export default tester(
shell: true,
}))
|> await
|> property('stdout')
|> property('stdout'),
).toEqual(endent`
FOO: "test"
`)
Expand All @@ -118,9 +118,9 @@ export default tester(
shell: true,
}))
|> await
|> property('stdout')
|> property('stdout'),
).toEqual('FOO: "test test2"')
},
},
[testerPluginEnv(), testerPluginTmpDir()]
[testerPluginEnv(), testerPluginTmpDir()],
)
Loading

0 comments on commit 22446f1

Please sign in to comment.