Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Reorganize files #6

Merged
merged 1 commit into from Apr 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
.vscode/settings.json
node_modules/
coverage
1 change: 1 addition & 0 deletions .nvmrc
@@ -0,0 +1 @@
8.11
10 changes: 9 additions & 1 deletion package.json
Expand Up @@ -2,7 +2,10 @@
"name": "monodeploy",
"version": "0.0.3",
"description": "A small wrapper around lerna that makes it easier to use in CI",
"main": "index.js",
"main": "src/index.js",
"files": [
"src"
],
"repository": "git@github.com:tophat/monodeploy.git",
"author": "Top Hat Monocle Corp. <opensource@tophat.com>",
"license": "Apache-2.0",
Expand All @@ -16,5 +19,10 @@
"lerna": "^3.13.3",
"memfs": "^2.15.2",
"regenerator-runtime": "^0.13.2"
},
"jest": {
"collectCoverageFrom": [
"src/**/*.js"
]
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions deployPackages.test.js → test/deployPackages.test.js
@@ -1,18 +1,18 @@
const { fs, vol } = require('memfs')

import { deployPackages as _deployPackages } from './index'
import { deployPackages as _deployPackages } from '..'
import {
__setLernaUpdatedSucceeds,
lernaPublish,
__setLernaUpdatedJson,
createGitTag,
__setLernaPublishSucceeds,
__setCreateGitTagSucceeds,
} from './command-helpers'
} from '../src/command-helpers'

jest.mock('fs')
jest.mock('./command-helpers')
jest.mock('./update-package-versions', () => jest.fn())
jest.mock('../src/command-helpers')
jest.mock('../src/update-package-versions', () => jest.fn())

const mockPackageList = [
{
Expand Down
@@ -1,10 +1,10 @@
import fetchUpdatedPackageVersions from './fetch-updated-package-versions'
import fetchUpdatedPackageVersions from '../src/fetch-updated-package-versions'
import {
__setNpmRegistryVersion,
__setLernaUpdatedJson,
} from './command-helpers'
} from '../src/command-helpers'

jest.mock('./command-helpers')
jest.mock('../src/command-helpers')

describe('fetchUpdatedPackageVersions function', () => {
it('fetches the updated package versions', async () => {
Expand Down