Skip to content

Commit

Permalink
test(cli): fix graphql datasets not being cleaned up
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Dec 22, 2022
1 parent f138723 commit d53a589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@sanity/cli/test/shared/cleanupDangling.ts
Expand Up @@ -72,7 +72,7 @@ async function deleteDatasets() {
}

function isTestEntity(entity: string): boolean {
return /^test[-_]\d{8}-/.test(entity)
return /^test[-_]\d{8}[-_]/.test(entity)
}

function isTestEntityOlderThanThreshold(entity: string): boolean {
Expand Down

1 comment on commit d53a589

@vercel
Copy link

@vercel vercel bot commented on d53a589 Dec 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

test-studio – ./

test-studio.sanity.build
test-studio-git-next.sanity.build

Please sign in to comment.