chore(misc): fix failing unit test in npm-package (#6798)
This commit is contained in:
parent
bfa06ce8b0
commit
c01b538985
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nrwl/nx-source",
|
||||
"version": "12.7.0",
|
||||
"version": "12.8.0-beta.1",
|
||||
"description": "Smart, Extensible Build Framework",
|
||||
"homepage": "https://nx.dev",
|
||||
"private": true,
|
||||
@ -280,4 +280,4 @@
|
||||
"ng-packagr/rxjs": "6.6.7",
|
||||
"**/xmlhttprequest-ssl": "~1.6.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -46,7 +46,8 @@ describe('@nrwl/workspace:npm-package', () => {
|
||||
\\"scripts\\": {
|
||||
\\"test\\": \\"node index.js\\"
|
||||
}
|
||||
}"
|
||||
}
|
||||
"
|
||||
`);
|
||||
expect(tree.read('packages/my-package/index.js').toString())
|
||||
.toMatchInlineSnapshot(`
|
||||
@ -74,10 +75,10 @@ describe('@nrwl/workspace:npm-package', () => {
|
||||
|
||||
const { projects } = readJson(tree, 'workspace.json');
|
||||
expect(projects['my-package']).toMatchInlineSnapshot(`
|
||||
Object {
|
||||
"root": "packages/my-package",
|
||||
}
|
||||
`);
|
||||
Object {
|
||||
"root": "packages/my-package",
|
||||
}
|
||||
`);
|
||||
|
||||
expect(readJson(tree, 'packages/my-package/package.json')).toEqual(
|
||||
existingPackageJson
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user