Lines Matching full:json
14 ...(initPackageJson ? { 'init-package-json': initPackageJson } : {}),
17 // init-package-json prints directly to console.log
43 const pkg = require(resolve(prefix, 'package.json'))
56 'should start init package.json in expected path'
263 'package.json': JSON.stringify({
273 const pkg = require(resolve(prefix, 'a/package.json'))
280 const lock = require(resolve(prefix, 'package-lock.json'))
289 'package.json': JSON.stringify({
295 'package.json': JSON.stringify({
306 const pkg = require(resolve(prefix, 'packages/a/package.json'))
312 await t.test('fail parsing top-level package.json to set workspace', async t => {
315 'package.json': 'not json[',
327 await t.test('missing top-level package.json when settting workspace', async t => {
335 'should exit with missing package.json file error'
338 t.equal(logs.warn[0][0], 'Missing package.json. Try with `--include-workspace-root`.')
341 await t.test('bad package.json when settting workspace', async t => {
344 'package.json': '{{{{',
358 await t.test('using args - no package.json', async t => {
362 'package.json': JSON.stringify({
366 'package.json': JSON.stringify({
371 // Important: exec did not write a package.json here
378 const pkg = require(resolve(prefix, 'package.json'))
382 await t.test('init template - bad package.json', async t => {
386 'package.json': JSON.stringify({
390 'package.json': JSON.stringify({
398 await fs.writeFile(resolve(dir, 'package.json'), JSON.stringify({
408 const pkg = require(resolve(prefix, 'package.json'))
411 const lock = require(resolve(prefix, 'package-lock.json'))
423 const pkg = require(resolve(npm.localPrefix, 'package.json'))
428 const ws = require(resolve(npm.localPrefix, 'packages/a/package.json'))