1.0.0 • Published 11 days ago

@drtyhu8npm/molestiae-nisi-necessitatibus v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 days ago

@drtyhu8npm/molestiae-nisi-necessitatibus

Overview

Simple framework for unit testing CJS Node.js modules using the following modules:

  • mocha - testing framework;
  • chai - assertion library;
  • sinon - test framework for stubs, spies and mocks;
  • nyc - code coverage checker;
  • rewire - allows access to the unexported items from the module under test;

Features

The following unexported module items may be stubbed for testing:

  • function;
  • class constructor.

Unexported module items, e.g., variables, required modules, may be accessed and faked.

Usage

See ./test/unit for example usage.

Testing

The following test scripts may be run from the command line:

  • npm run test
    • Runs the unit tests, code coverage and outputs the coverage stats.
  • npm run coverage
    • Generates the code coverage data in html format in the './coverage' directory.
  • npm run lint
    • Run eslint on the source and test code; if no errors are detected, only the lint command line is output.
hookformfast-deep-cloneflatreadablesafecolumn_.extendfast-cloneformses-shimssortFunction.prototype.nameReactiveExtensionshttpavaserializationtypeofSymbol.toStringTagcommandarrayswhichletentriesECMAScript 2022east-asian-widthlogstarteres2018AsyncIteratorECMAScript 2017StyleSheetwaapies5signalspolyfilleslintconfig3dtoStringTagframerwatchFilea11ycss variableBigUint64Arrayfind-uprapidjsondatastructuredClonechildimmerexeenvironmentES2020threeendersanitizeconfigdirectoryreact-hookslazyvalidfantasy-landargvregular expressionajvimportbundlingInt32ArraydragopenjQueryoptimizergrouplimitedmodulesarttrimEndRxcssclassnamemkdiriereadmimetypesyupexpressiontranspilerlinewrapvarwalkdotenvxssframework.envsearchInt8ArrayflagArrayBuffer#slicefastchromeES2021tsrmdirparentsTypeBoxflagscommand-linees2017collection.es6httpsObject.definePropertylinuxurlscolordiffECMAScript 2020domi18njson-schema-validatorwebformattingcharacterYAMLcomparesuperstructschemaReactiveXzodjsonschemaes8tapestringifierdescriptiontypeArray.prototype.flattenpushthrottleeventEmitterwritecacheinferencegradients css3superagentnameeslintpluginstringifyutilsmulti-packagebootstrap csstrimStartirqMicrosoftmonoreposerializefindLastIndexextendstartassignUint16Arrayfixed-widthexeccore-jscolumnsvariables in cssconcurrencyArray.prototype.contains@@toStringTages2015regexpsigtermvaluehelpersqueueES7wordbreakcolourbuffershashtypedarraysbabel-coreURLSearchParamsloggingmatch__proto__package managerStreamnpmObject.ismatchAllintrinsicfast-deep-copyreduxcompile lessreact posefastcopyregexES3Array.prototype.filterBigInt64Arraychromiumcurriedparentlistenersloadingbusynested cssArraychaiopenerlessrandomgradients cssmomentwebsitedebuggerappfilepackage.jsonconfigurablesequencetestershamtoobjectgroupBybcryptprefixsettingsCSSStyleDeclarationqueueMicrotaskphonekeycallbackES2023estreeparserregular expressionsutilHyBiCSScryptObject.valuesgetoptFloat32Arrayreactreact animationwrapcompilercommanderfunctionswaitserializerfindbytetestingprocesswhatwgfullwidthxhrbreakuser-streamsgesturesiteratewordwrapcircularsymboldataViewtranspiledescriptorastcss-in-jssignalrecursiveminimalutilityaccessorreal-timecharactersinstallertypeerrortypanionprotodeepclonexdg-openharmonysortedcurltrimLeftpopmotionbindvalidationformatextraforEacheslint-pluginisConcatSpreadableinspectpluginglobasciireact-testing-libraryless compilerargsparsetostringtagmovelook-upclientansipromisemakedayjslibphonenumberprivate datautil.inspectoptionform-validationObjectvisualopenschannelPromisecoreArrayBuffer.prototype.slicesetterstreamssymlinkgetOwnPropertyDescriptorcomputed-typesECMAScript 2018karmasidecolorsmake dirunicodesliceRegExp#flags256slotes-abstractredux-toolkitsymlinksfromECMAScript 3styled-componentsstylingfppostcssidlecallboundUint8ClampedArrayprotocol-buffersescapeconcatMapeveryextensiondependenciesiterationkoreanbddterminalcors-0IteratorArray.prototype.findLastIndextermpatchhigher-orderspecArrayBufferpipepackagees-shim APIguidES2015Uint8ArraytypedcodesprogresseslintObject.getPrototypeOfdescriptorspreserve-symlinksconstlanguagebrowserslistObservablesclassnamesjoideterministiccliviewweaksetStreamsinvariantfunctionnegativesyntaxMappropertiesECMAScript 2021Object.fromEntriesvalidatordependency managerjson-schematoolsmkdirsttyeventDispatcherprotobufcallbindrmfoldercryptopersistentemitcollectionES2017immutablel10npreprocessoroutputsameValueZerobootstrap lessponyfillmap6to5stylessharedpositivedatereact-hook-formcallTypedArrayposeUnderscorefinduprangeerrormruwindowswatcheromitlinkfigletisquerycheckreusenodeequalitysetregularWebSocketspromisesoperating-systemloggertypesafestablespinner0authenticationpostcss-pluginxdg$.extenddirUint32ArrayESclass-validatorbabeluuidramdaless mixins[[Prototype]]quoteECMAScript 6code pointsFloat64ArrayiteratordeletePushES2016negative zeroquerystringboundexpressjapanesebundlerformgetintrinsicupvestpnpm9typesString.prototype.trimtextprunefastifystatuspoint-freeassertjavascriptnodejsECMAScript 5animationidprivateshebangmacoseditortaskoffsetObject.keysspeedfast-copywritableECMAScript 2016fetchtrimtoolkittrimRightstyleECMAScript 2015createbufferdeepcopyefficientdefinePropertybyteLengthvariablesnumberECMAScript 2023readablestreamairbnbtapES5tslibarraybuffercensornopebyteOffsetkeysgdprjsenumerabledeep-clonebatchasyncyamlnativeweakmapinternalmkdirpratejasminebluebirdobjmobilesharedarraybufferlaunchuninstallajaxchinesearktypewgetargparsejsonpathjsxsigintio-tsinputexitpicomatchfastclonepurejestfilterratelimitWebSocketconsoleshellerrorArray.prototype.flatlengthes6streams2runtimezerointernal slotdefinewidthdefaultarrayesmiddlewarees7datastructureRFC-6455file systemcall-boundmochagetPrototypeOfsetImmediatecss nestinghardlinksInt16ArraytakeshrinkwrapoptimistduplexremoveES6fseventseventsmoduleless csstacitspringemojistreamgraphqlworkspace:*pathxtermrm -frecmascripthooksless.jsmixinsstateless
1.0.0

11 days ago