-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from crazy-max/update-dev
chore: update dev dependencies and workflow
- Loading branch information
Showing
16 changed files
with
1,787 additions
and
7,541 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"env": { | ||
"node": true, | ||
"es2021": true, | ||
"jest/globals": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:jest/recommended", | ||
"plugin:prettier/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"jest", | ||
"prettier" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"printWidth": 120, | ||
"printWidth": 240, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"semi": true, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.