Skip to content

Commit

Permalink
Test again
Browse files Browse the repository at this point in the history
  • Loading branch information
anacierdem committed Sep 23, 2024
1 parent a76e57e commit 4ac0edb
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -201,16 +201,26 @@ describe('Smoke tests', () => {
test.only('should recover the submodule branch after a destroy', async () => {
await $`libdragon init -v --branch=unstable`;
await $`libdragon destroy -v`;

console.log('initializing again');

Check failure on line 205 in test.mjs

View workflow job for this annotation

GitHub Actions / Run-Tests / ci

Unexpected console statement

await $`libdragon init -v`;

const { stdout: newContainerId } = await $`libdragon start`;
console.log('newContainerId', newContainerId.trim());

Check failure on line 210 in test.mjs

View workflow job for this annotation

GitHub Actions / Run-Tests / ci

Unexpected console statement

const { stdout: branch } =
await $`git -C ./libdragon rev-parse --abbrev-ref HEAD`;

expect(
(
await $`docker container inspect ${newContainerId.trim()} --format "{{.Config.Image}}"`
).stdout.trim()
).toBe('ghcr.io/dragonminded/libdragon:unstable');
const { stdout: containerImage } =
await $`docker container inspect ${newContainerId.trim()} --format "{{.Config.Image}}"`;

console.log('containerImage', containerImage.trim());

Check failure on line 218 in test.mjs

View workflow job for this annotation

GitHub Actions / Run-Tests / ci

Unexpected console statement
console.log('branch', branch.trim());

Check failure on line 219 in test.mjs

View workflow job for this annotation

GitHub Actions / Run-Tests / ci

Unexpected console statement

expect(containerImage.trim()).toBe(
'ghcr.io/dragonminded/libdragon:unstable'
);

expect(branch.trim()).toEqual('unstable');
}, 200000);
Expand Down

0 comments on commit 4ac0edb

Please sign in to comment.