Giter Club home page Giter Club logo

Comments (5)

ktalebian avatar ktalebian commented on August 18, 2024

@ShelbyZ are you saying when you run npm run test in a CI/CD system, it runs it in watch mode?

from flex-plugin-builder.

ShelbyZ avatar ShelbyZ commented on August 18, 2024

When running either locally or on CI/CD system (Azure Pipelines build-agent running Ubuntu). Within package.json there are two test commands - test, test:watch. I was expecting test would be without watch mode.

from flex-plugin-builder.

ktalebian avatar ktalebian commented on August 18, 2024

Okay will take a look at it. In the meantime, can you try and tell me if running CI=true npm run test stops the tests from running in watch mode?

from flex-plugin-builder.

ktalebian avatar ktalebian commented on August 18, 2024

@ShelbyZ did you upgrade your plugin manually from an earlier version? The new version of the plugin-builder does not have test and test:watch (see https://github.com/twilio/flex-plugin-builder/blob/master/packages/create-flex-plugin/templates/js/package.json).

npm run test would always run in watch mode. If you want to run once, then you can use CI=true npm run test.

As for your CI/CD system, most CI/CD systems automatically should be injecting a CI=true environment variable into your runtime. If your pipeline is not, then you should use CI=true npm run test in your build script.

from flex-plugin-builder.

ShelbyZ avatar ShelbyZ commented on August 18, 2024

I was actually starting from:

npx create-flex-plugin plugin-new

I will agree with only a single script for testing this is not an issue (or confusion). Going to close this out as a non-issue.

from flex-plugin-builder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.