chore: update dev dependencies and workflow

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2022-04-23 14:35:24 +02:00
parent 2e6b2303a4
commit 85d3380195
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
16 changed files with 1769 additions and 7523 deletions

View file

@ -1,22 +1,20 @@
import fs = require('fs');
import {describe, expect, it} from '@jest/globals';
import * as fs from 'fs';
import * as dagger from '../src/dagger';
describe('install', () => {
it('acquires latest version of Dagger', async () => {
const daggerBin = await dagger.install('latest');
console.log(daggerBin);
expect(fs.existsSync(daggerBin)).toBe(true);
}, 100000);
it('acquires latest 0.1 version', async () => {
const daggerBin = await dagger.install('0.1');
console.log(daggerBin);
expect(fs.existsSync(daggerBin)).toBe(true);
}, 100000);
it('acquires 0.1.0-alpha.9 version of Dagger', async () => {
const daggerBin = await dagger.install('0.1.0-alpha.9');
console.log(daggerBin);
expect(fs.existsSync(daggerBin)).toBe(true);
}, 100000);
});