Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.
This repository was archived by the owner on Oct 30, 2025. It is now read-only.

Brainstorm best way to handle script testing #49

Description

@alechp

Environments that need to be accounted for:

Node

    "dev": "npm run dev:liveReloadedModule",
    "dev:vanillaModule": "babel-node src/index.js",
    "dev:liveReloadedModule": "nodemon --watch src/index.js --exec 'babel-node src/index.js'",
    "dev:liveReloadedModuleAndTests": "npm-run-all -s clean:build build test:liveReloadedAva",

Docker

    "dev:liveReloadedDocker": "npm-run-all -p docker:compose dev:liveReloadedModule docker:liveReload ",
    "docker:liveReload": "npx docker-live-reload 'src/**/*' node-starter_server_1 /usr/src/server/src",
    "docker:compose": "docker-compose up -d",

Testing

    "test": "npm run test:ava",
    "test:ava": "ava",
    "test:liveReloadedAva": "ava --watch",

Production

	"production": "npm run production:quick",
    "production:quick": "npm run build && node build/main.js",
    "production:full": "npm run ci && node build/main.js",
    "ci": "npm-run-all -s build ci:local:timed:vuln",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions