prisma_6: drop prisma init in test which now requires internet access
Later versions of Prisma 6 seem to require internet access on the first run of `prisma init` to fetch updates to the subcommand. This fails in the test environment, but since we are already sketching out the test schema structure manually, we can drop that in favour of just creating the prisma/ directory.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
prisma_6,
|
||||
prisma-engines_6,
|
||||
sqlite-interactive,
|
||||
openssl,
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -15,6 +16,7 @@ runCommand "prisma-cli-tests"
|
||||
nativeBuildInputs = [
|
||||
prisma_6
|
||||
sqlite-interactive
|
||||
openssl
|
||||
];
|
||||
meta.timeout = 60;
|
||||
}
|
||||
@@ -30,8 +32,9 @@ runCommand "prisma-cli-tests"
|
||||
# Ensure CLI runs
|
||||
prisma --help > /dev/null
|
||||
|
||||
# Init a new project
|
||||
prisma init > /dev/null
|
||||
# Init a new project without prisma init, which needs
|
||||
# network access
|
||||
mkdir prisma
|
||||
|
||||
# Create a simple data model
|
||||
cat << EOF > prisma/schema.prisma
|
||||
|
||||
Reference in New Issue
Block a user