How to use the serve.nest.foo function in serve

To help you get started, we’ve selected a few serve examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nstudio / xplat / src / app.nest / index_spec.ts View on Github external
expect(checkFile.indexOf(`"name": "foo"`)).toBeGreaterThanOrEqual(0);

    expect(
      files.indexOf("/tools/electron/postinstall.js")
    ).toBeGreaterThanOrEqual(0);
    expect(files.indexOf("/tools/web/postinstall.js")).toBeGreaterThanOrEqual(
      0
    );

    checkPath = "/package.json";
    expect(files.indexOf(checkPath)).toBeGreaterThanOrEqual(0);

    checkFile = getFileContent(tree, checkPath);

    const packageData: any = jsonParse(checkFile);
    expect(packageData.scripts["serve.nest.foo"]).toBeDefined();
    expect(packageData.scripts["start.nest.foo"]).toBeDefined();
  });

serve

Static file serving and directory listing

MIT
Latest version published 3 months ago

Package Health Score

94 / 100
Full package analysis