Skip to content

Commit

Permalink
chore: update test snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
book000 committed Nov 6, 2024
1 parent 6478643 commit 1ce263f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
7 changes: 5 additions & 2 deletions scripts/load-env.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
get-content .env | foreach {
$name, $value = $_.split('=')
get-content .env | ForEach-Object {
$name, $value = $_.split('=', 2)
if ([string]::IsNullOrWhiteSpace($name) || $name.Contains('#')) {
continue
}
set-content env:\$name $value
}
7 changes: 7 additions & 0 deletions scripts/update-snapshot.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# shellcheck disable=SC2046
[ -f .env ] && export $(grep -v '^#' .env | xargs)

pnpm install
pnpm run test -u
4 changes: 0 additions & 4 deletions src/__snapshots__/pixiv.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,6 @@ exports[`pixiv illustDetail:107565629[illust] 1`] = `
"name": "衣装チェンジ",
"translated_name": null,
},
{
"name": "尊死",
"translated_name": null,
},
{
"name": "Incredibly",
"translated_name": null,
Expand Down

0 comments on commit 1ce263f

Please sign in to comment.