Skip to content

Commit

Permalink
try installing docker on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
electrovir committed Sep 10, 2024
1 parent ff06b28 commit b535370
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
if: runner.os == 'macOS'
shell: bash
run: |
brew install docker colima
colima start
brew install docker
docker start
- name: run test
shell: bash
run: |
Expand Down
16 changes: 5 additions & 11 deletions packages/node/src/prisma/prisma-migrations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,17 +145,11 @@ describe(prisma.migration.applyDev.name, () => {
await clearTestDatabaseOutputs();
await prisma.database.resetDev(testPrismaSchemaPath);

await prisma.migration.create(
{
migrationName: 'init',
createOnly: true,
},
testPrismaSchemaPath,
);
const status = await prisma.migration.status(testPrismaSchemaPath);

assert.strictEquals(status.totalMigrations, 1);
assert.isLengthExactly(status.unappliedMigrations, 1);
await prisma.migration.create({migrationName: 'init'}, testPrismaSchemaPath);
assert.deepEquals(await prisma.migration.status(testPrismaSchemaPath), {
totalMigrations: 1,
unappliedMigrations: [],
});

await assert.throws(prisma.migration.applyDev(testPrismaSchema2Path), {
matchMessage: 'A new Prisma migration is needed for',
Expand Down

0 comments on commit b535370

Please sign in to comment.