• Home
  • Raw
  • Download

Lines Matching full:scripts

53   t.test('has package.json, no scripts', async t => {
57 t.test('has package.json, with scripts', async t => {
59 scripts: { hello: 'echo hello', world: 'echo world' }, property
66 scripts: { hello: 'echo hello', world: 'echo world' }, property
78 t.test('default env, start, and restart scripts', async t => {
94 pkg: { name: 'x', version: '1.2.3', _id: 'x@1.2.3', scripts: {} }, property
112 scripts: { property
134 scripts: { property
163 scripts: { property
178 scripts: { property
197 scripts: { property
214 scripts: { property
233 scripts: { property
247 scripts: { hello: 'world' }, property
270 scripts: { hello: 'world' }, property
286 scripts: { property
307 scripts: { property
323 scripts: { property
329 config: { 'ignore-scripts': true },
344 scripts: { property
362 scripts: { property
386 scripts: { property
400 t.test('list scripts', async t => {
401 const scripts = { variable
415 scripts, property
431 ['Lifecycle scripts included in x@1.2.3:'],
450 t.strictSame(outputs, [[JSON.stringify(scripts, 0, 2)]], 'json report')
465 t.test('list scripts when no scripts', async t => {
479 t.test('list scripts, only commands', async t => {
485 scripts: { preversion: 'echo doing the version dance' }, property
492 ['Lifecycle scripts included in x@1.2.3:'],
498 t.test('list scripts, only non-commands', async t => {
504 scripts: { glorp: 'echo doing the glerp glop' }, property
511 ['Scripts available in x@1.2.3 via `npm run-script`:'],
532 scripts: { glorp: 'echo a doing the glerp glop' }, property
539 scripts: { glorp: 'echo b doing the glerp glop' }, property
546 scripts: { property
557 scripts: { property
566 scripts: { test: 'exit 0', start: 'echo start something' }, property
594 t.test('list all scripts', async t => {
597 ['Scripts available in a@1.0.0 via `npm run-script`:'],
600 ['Scripts available in b@2.0.0 via `npm run-script`:'],
603 ['Lifecycle scripts included in c@1.0.0:'],
609 ['Lifecycle scripts included in d@1.0.0:'],
613 ['Lifecycle scripts included in e:'],
620 t.test('list regular scripts, filtered by name', async t => {
623 ['Scripts available in a@1.0.0 via `npm run-script`:'],
626 ['Scripts available in b@2.0.0 via `npm run-script`:'],
632 t.test('list regular scripts, filtered by path', async t => {
635 ['Scripts available in a@1.0.0 via `npm run-script`:'],
641 t.test('list regular scripts, filtered by parent folder', async t => {
644 ['Scripts available in a@1.0.0 via `npm run-script`:'],
647 ['Scripts available in b@2.0.0 via `npm run-script`:'],
650 ['Lifecycle scripts included in c@1.0.0:'],
656 ['Lifecycle scripts included in d@1.0.0:'],
660 ['Lifecycle scripts included in e:'],
667 t.test('list all scripts with colors', async t => {
682 ['\x1B[0m\x1B[1mLifecycle scripts\x1B[22m\x1B[0m included in \x1B[32mc@1.0.0\x1B[39m:'],
688 ['\x1B[0m\x1B[1mLifecycle scripts\x1B[22m\x1B[0m included in \x1B[32md@1.0.0\x1B[39m:'],
692 ['\x1B[0m\x1B[1mLifecycle scripts\x1B[22m\x1B[0m included in \x1B[32me\x1B[39m:'],
699 t.test('list all scripts --json', async t => {
729 t.test('list all scripts --parseable', async t => {
744 t.test('list no scripts --loglevel=silent', async t => {
749 t.test('run scripts across all workspaces', async t => {
781 t.test('missing scripts in all workspaces', async t => {
790 'Error: Missing script: "missing-script"\n\nTo see a list of scripts, run:\n npm run',
794 'Error: Missing script: "missing-script"\n\nTo see a list of scripts, run:\n npm run',
798 'Error: Missing script: "missing-script"\n\nTo see a list of scripts, run:\n npm run',
802 'Error: Missing script: "missing-script"\n\nTo see a list of scripts, run:\n npm run',
806 'Error: Missing script: "missing-script"\n\nTo see a list of scripts, run:\n npm run',
810 'Error: Missing script: "missing-script"\n\nTo see a list of scripts, run:\n npm run',
818 t.test('missing scripts in some workspaces', async t => {
829 'Error: Missing script: "test"\n\nTo see a list of scripts, run:\n npm run',
833 'Error: Missing script: "test"\n\nTo see a list of scripts, run:\n npm run',