New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ns-suitescript-mocks

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ns-suitescript-mocks

Collection of mocks that can be used to improve unit-tests for SuiteScript 2.0.

  • 0.2.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

ns-suitescript-mocks

This module contains a collection of mocks that can be used to improve unit-tests for SuiteScript 2.0.

Disclaimer ⚠️

This module is in its early stage and is very opinionated to fit our own needs. We plan to make it more flexible to work with more codebases.
Suggestions are more than welcome 🎊
If you are looking for a way to test your suitescript codebase and this module doesn't fit your use-case, let us know anyway, we'd love to have a setup that works for everyone.

Getting started 🚀

  1. Install this module as a dependency:
npm i ns-suitescript-mocks --save-dev
  1. Import the module in your test framework init file (jest.init for example)
const netsuiteMocks = require('ns-suitescript-mocks')(
  {
    utils: ('external-librairies-path'),
  });
global.define = netsuiteMocks.define;
global.mockups = netsuiteMocks.nsMockups;

  1. Write your code and use these mocks

Examples can be found in 'Examples folder in repo!'

Contribute 💻

Any contribution is more than welcome 🎉

We are using Airbnb base style, make sure you have ESLint/Standard plugin on your editor and have autofix enabled.

Feel free to modify and send us a PR, we'll review and hopefully merge it. Before pushing your code, make sure that the tests are passing (at the moment, we only have eslint).

Authors 😎

See also the list of contributors who participated in this project.

License 🔓

This project is licensed under the MIT License - see the LICENSE file for details

Roadmap 🛣

  • add examples for jest
  • cleanup mycs occurences
  • add tests for the repo
  • automate release process
  • add example for other test frameworks

If you want to contribute and don't know where to start, we label our issues with help wanted or good first issue, feel free to browse the issues and ask for more information.

Keywords

FAQs

Package last updated on 26 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc