Skip to content

Commit

Permalink
Merge pull request #1 from dword-design/renovate/lock-file-maintenance
Browse files Browse the repository at this point in the history
Lock file maintenance
  • Loading branch information
dword-design committed Feb 6, 2020
2 parents 4d4432e + 048ebc8 commit ace3816
Show file tree
Hide file tree
Showing 9 changed files with 74 additions and 256 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"devDependencies": {
"@dword-design/base": "^5.0.0",
"@dword-design/functions": "^2.7.0",
"expect": "^25.1.0",
"fs-extra": "^8.1.0",
"output-files": "^1.1.12",
"with-local-tmp-dir": "^2.2.5"
Expand Down
3 changes: 1 addition & 2 deletions test/defaults-with-env.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import withLocalTmpDir from 'with-local-tmp-dir'
import dotenv from '@dword-design/dotenv'
import expect from 'expect'
import outputFiles from 'output-files'

export default () => withLocalTmpDir(async () => {
Expand All @@ -12,4 +11,4 @@ export default () => withLocalTmpDir(async () => {
})
dotenv.config()
expect(process.env.FOO).toEqual('baz')
})
})
3 changes: 1 addition & 2 deletions test/defaults.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import withLocalTmpDir from 'with-local-tmp-dir'
import dotenv from '@dword-design/dotenv'
import expect from 'expect'
import outputFiles from 'output-files'

export default () => withLocalTmpDir(async () => {
Expand All @@ -11,4 +10,4 @@ export default () => withLocalTmpDir(async () => {
})
dotenv.config()
expect(process.env.FOO).toEqual('bar')
})
})
3 changes: 1 addition & 2 deletions test/dotenv-extended-options.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import withLocalTmpDir from 'with-local-tmp-dir'
import dotenv from '@dword-design/dotenv'
import expect from 'expect'
import outputFiles from 'output-files'

export default () => withLocalTmpDir(async () => {
Expand All @@ -11,4 +10,4 @@ export default () => withLocalTmpDir(async () => {
})
dotenv.config({ overrideProcessEnv: true })
expect(process.env.FOO).toEqual('baz')
})
})
3 changes: 1 addition & 2 deletions test/env.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import withLocalTmpDir from 'with-local-tmp-dir'
import dotenv from '@dword-design/dotenv'
import expect from 'expect'
import outputFiles from 'output-files'

export default () => withLocalTmpDir(async () => {
Expand All @@ -11,4 +10,4 @@ export default () => withLocalTmpDir(async () => {
})
dotenv.config()
expect(process.env.FOO).toEqual('bar')
})
})
3 changes: 1 addition & 2 deletions test/extra-variable.test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import withLocalTmpDir from 'with-local-tmp-dir'
import dotenv from '@dword-design/dotenv'
import { outputFile } from 'fs-extra'
import expect from 'expect'

export default () => withLocalTmpDir(async () => {
delete process.env.FOO
await outputFile('.env', 'FOO=bar')
expect(dotenv.config).toThrow('EXTRA CONFIG VALUES: FOO')
})
})
3 changes: 1 addition & 2 deletions test/missing-variable.test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import withLocalTmpDir from 'with-local-tmp-dir'
import dotenv from '@dword-design/dotenv'
import { outputFile } from 'fs-extra'
import expect from 'expect'

export default () => withLocalTmpDir(async () => {
delete process.env.FOO
await outputFile('.env.schema', 'FOO=')
expect(dotenv.config).toThrow('MISSING CONFIG VALUES: FOO')
})
})
3 changes: 1 addition & 2 deletions test/parent-folder.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import withLocalTmpDir from 'with-local-tmp-dir'
import dotenv from '@dword-design/dotenv'
import expect from 'expect'
import outputFiles from 'output-files'
import { omit, endent } from '@dword-design/functions'

Expand All @@ -19,4 +18,4 @@ export default () => withLocalTmpDir(async () => {
dotenv.config()
expect(process.env.FOO).toEqual('test')
expect(process.env.BAR).toEqual('test2')
})
})
Loading

0 comments on commit ace3816

Please sign in to comment.