Skip to content

Commit 9f3c727

Browse files
committed
[tests] Ignore starter template tables
1 parent 94cbcdb commit 9f3c727

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/unit/persisters/sqlite.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,11 @@ export const getDatabaseFunctions = <Database>(
168168
await cmd(
169169
db,
170170
'SELECT sql, name FROM sqlite_schema ' +
171-
`WHERE type = 'table' AND name NOT LIKE ? AND name NOT LIKE ?`,
172-
['%sql%', '%electric%'],
171+
`WHERE type = 'table'` +
172+
' AND name NOT LIKE ? ' +
173+
' AND name NOT LIKE ? ' +
174+
' AND name NOT LIKE ?',
175+
['%sql%', '%electric%', 'items'], // starter template pollution
173176
)
174177
).map(async ({sql, name}: any) => [
175178
name,

0 commit comments

Comments
 (0)