5.14.149 • Published 11 months ago

@firanorg/dolore-cumque-distinctio v5.14.149

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

Read The Docs | Edit the docs

Build Status Code Coverage version downloads MIT License

All Contributors PRs Welcome Code of Conduct Discord

Watch on GitHub Star on GitHub Tweet

Table of Contents

The Problem

You want to write tests for your Svelte components so that they avoid including implementation details, and are maintainable in the long run.

This Solution

The svelte-testing-library is a very lightweight solution for testing Svelte components. It provides light utility functions on top of svelte and dom-testing-library, in a way that encourages better testing practices. Its primary guiding principle is:

The more your tests resemble the way your software is used, the more confidence they can give you.

Installation

This module is distributed via npm which is bundled with node and should be installed as one of your project's devDependencies:

npm install --save-dev @firanorg/dolore-cumque-distinctio

This library has peerDependencies listings for svelte >= 3.

You may also be interested in installing @testing-library/jest-dom so you can use the custom jest matchers.

Setup

We recommend using @firanorg/dolore-cumque-distinctio with Vitest as your test runner. To get started, add the svelteTesting plugin to your Vite or Vitest config.

  // vite.config.js
  import { svelte } from '@sveltejs/vite-plugin-svelte'
+ import { svelteTesting } from '@firanorg/dolore-cumque-distinctio/vite'

  export default defineConfig({
    plugins: [
      svelte(),
+     svelteTesting(),
    ]
  });

See the setup docs for more detailed setup instructions, including for other test runners like Jest.

Svelte 5 support

If you are riding the bleeding edge of Svelte 5, you'll need to either import from @firanorg/dolore-cumque-distinctio/svelte5 instead of @firanorg/dolore-cumque-distinctio, or add an alias to your vite.config.js:

export default defineConfig({
  plugins: [svelte(), svelteTesting()],
  test: {
    alias: {
      '@firanorg/dolore-cumque-distinctio': '@firanorg/dolore-cumque-distinctio/svelte5',
    },
  },
})

Docs

See the docs over at the Testing Library website.

Issues

Looking to contribute? Look for the Good First Issue label.

🐛 Bugs

Please file an issue for bugs, missing documentation, or unexpected behavior.

See Bugs

💡 Feature Requests

Please file an issue to suggest new features. Vote on feature requests by adding a 👍. This helps maintainers prioritize what to work on.

See Feature Requests

❓ Questions

For questions related to using the library, please visit a support community instead of filing an issue on GitHub.

Contributors

Thanks goes to these people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

LICENSE

MIT

requestparentsECMAScript 2017callboundsharedcompilerboundavacss nestinglistenerslogcheckJSONPushflatvaluesmake dircloneECMAScript 7ES2015moduleshookscollection.es6elbjapaneselockfiletermwidthauthenticationi18ntrimfullwidthtaskfunctionprotogradients csstostringtaghasOwnes2016browserparentspecconsumemergesortedstoragegatewayquerystableSymbol.toStringTagES5preprocessorconsoleindicatorsymboltelephonebrowserlistSymboloptimizerautoprefixersymlinkgetOwnPropertyDescriptorInt16Arrayroutescheme-validationglobalbufferstapewatchFileES2019containsrmdircloudwatchcorscall-boundchromees-abstractbyteprotobufsethotcss-in-jsrequirelengthESfindLastIndexnative$.extendcalljsonpathbeanstalkroute53jestES2022spinnerinputfast-deep-copydatekoreanassertionjsonCSSStyleDeclarationerrorkeyWebSocketssiginthelpersURLSearchParamsURLebsreal-timesharedarraybuffertoolkitMaps3ratelimitzerometadatadeterministicTypeBoxuuidObservableredactes-shimsRFC-6455waffromlimitworkflowwatchES2016Object.definePropertydirectorycode pointses2018inferencemulti-packagekeysmakewarningimportexportES3lastYAMLeventDispatcherArrayBuffer.prototype.slicecallbinddescriptorrm -frECMAScript 3Promisereact-hook-formObject.getPrototypeOfECMAScript 2021Array.prototype.containsUint8ClampedArraystylingcss less0statelessuphigher-orderconfigECMAScript 2015RegExp#flagseslintloggerutilitiesparseencryptionsetterECMAScript 6JSON-SchemattypropertynegativecircularhttpwgetserializeeveryjwtObject.entriesasyncpluginyupmatchjsxreact-hooksbcryptidUint32Arrayinternalwindowseses2015pushcrypteast-asian-widthvariablesflattenCSSjavascriptframeworkinvariantexeccoreelasticacheinstallerrdscharacterchaitypeformsunicodefigletcommand-lineregextypedoptimistremovecommandfetchdirFunction.prototype.nameES2023classnamea11yec2TypeScriptestreerapidphonenopepostcssless compilerstylesheetsinatratypessqsObject.fromEntriessymbolsoptionmovewordbreakregularequalityutilityassignrobustES7inspectstdlibstyleshellhasmimematchAllstringifierprivate datathroattouchdeepgroupByratesignalsarraybufferhasOwnPropertyvpcrangeerrorefficientlinkecmascriptquerystringvestnodewalkkarmakinesisietakefindupStreamerror-handlingintrinsicsomelesscssresolveartdefineentriessnsECMAScript 2019ECMAScript 2022bannerStyleSheetfile systemuninstallfastclonetoSortedes-shim APIWebSocketslotHyBisetPrototypeOfloadbalancingsuperstructpackagereadformmonorepoObject.iscurldependency managertypedarraybufferowncliio-tstslinuxpipecloudformationemrdropwatcherargscharactersqsprogressstyled-componentsinterruptsairbnbReactiveExtensionsECMAScript 2023Array.prototype.includespackagesomitglobalsauthcopyjasminedatavalidateiteratorextenditerationReactiveXpromisedeep-clonefast-deep-cloneUint8ArrayArray.prototype.flattenreactenvironmentrfc4122call-bindregexpECMAScript 5postcss-pluginES8mapaccessibilityamazonisConcatSpreadable_.extendfunctionsshimES2018varsless.jsArray.prototype.flatIteratorweakmaplinewrapshebangdatastructurehttpsbindperformanturlconcatreusespeedemitmomentdeepcopysortconcatMapstarterzodBigInt64Arraybundlerpolyfilll10nobjparseroperating-systemcallbackcacheArrayESnextviewreduceperformancearrayssiderandomstreamUnderscoreshrinkwrapes7trimLeftpredictableeventEmitterflagsajaxtestingjsdom[[Prototype]]shamtrimEndcore-jsmimetypeseslintconfigfastlook-upformatECMAScript 2018routingtypesafeless mixinsdom-testing-librarytypeofcloudfrontSetprotocol-buffersfastcopypyyamltoolswrappreserve-symlinkssymlinksbootstrap cssdotenvcommanderfindreadablelrudebugpathdayjsexit-coderecursiveObject.keysassertsdeep-copystructuredClonegdprcjkpositivegetbundlingopenminimaltyped arrayfunctionalbyteLengthexitArray.prototype.filterpersistentbrowserslistrm -rfpnpm9liveflatMapexpressionECMAScript 2020typeerrorschemeutil.inspecttrimRightoncewebpatchcloudtrailprunejsdiffidleguidcssreduxserializerArrayBuffersignalstatuspackage managerenvwritablewordwrapansifind-upUint16Arraybreakwritewalkingemojinested cssstringifyenderRegExp.prototype.flagsgradients css3less csscollectionWeakSettslibconnectprocessrgbclass-validatorindynamodbconfigurabledeepcloneArray.prototype.findLastIndexelmfseventsfast-copyastdomReflect.getPrototypeOfterminalfullwhichObservablesimportnpmfpssimpledbfindLastlazycloudsearchdependenciesclassespicomatcheventsmixinsruntimeappvisualfilterbyteOffsetcoloreslintpluginvalidationajvobjectnamehandlersmochasigtermString.prototype.matchAllinternal slotclassnamesmiddlewareparsingtypedarraysescapefoldernodejstesterRxJSnumberObjectes6bddmkdirmobiledefinePropertymkdirsAsyncIteratoraccessor.envES2017arktypeworkerdiffmapreducestreamsregular expressionmatchesimmerhardlinksBigUint64Arraydeleteworkspace:*macos@@toStringTagtimeiteratechannelreducerthrottlemkdirpawesomesaucelintexpresssliceFloat32Arraytraverse__proto__enumerablecss variabledescriptiontoArrayrestfuldataviewInt32ArraysyntaxES2021tddprefixbatchsameValueZeropackage.jsonlesstrimStartlogginges5Array.prototype.flatMapArray.prototype.findLastargvswfObject.assignxhrargumentvariables in cssisformattingdebuggercolorslooknegative zerostreams2autoscalingcryptoapiwaitWeakMapflag-0immutableassertcodesnamesredux-toolkitgenericsprivateStreamsdescriptorsconcurrencyschemapasswordstyleguidetoStringTagawaitcolumngettertypanionoffsetfast-cloneform-validationregular expressionsreact-testing-librarychinesedataViewcolour
5.14.149

11 months ago

5.13.149

11 months ago

5.13.147

11 months ago

5.13.146

11 months ago

5.13.148

11 months ago

4.12.135

11 months ago

4.12.132

11 months ago

4.12.133

11 months ago

4.12.134

11 months ago

4.13.145

11 months ago

4.13.136

11 months ago

4.13.137

11 months ago

4.13.135

11 months ago

4.13.138

11 months ago

4.13.139

11 months ago

4.13.140

11 months ago

4.13.143

11 months ago

4.13.144

11 months ago

5.13.145

11 months ago

4.13.141

11 months ago

4.13.142

11 months ago

4.11.131

12 months ago

4.12.131

11 months ago

4.11.130

12 months ago

4.11.129

12 months ago

4.11.128

12 months ago

4.11.127

12 months ago

4.11.125

12 months ago

4.11.126

12 months ago

4.11.123

12 months ago

4.11.124

12 months ago

4.11.121

12 months ago

4.11.122

12 months ago

4.11.120

12 months ago

4.11.119

12 months ago

4.11.118

12 months ago

4.11.116

12 months ago

3.11.116

12 months ago

4.11.117

12 months ago

3.11.115

12 months ago

3.11.114

12 months ago

3.11.113

12 months ago

3.11.112

1 year ago

3.11.111

1 year ago

3.11.110

1 year ago

3.11.109

1 year ago

3.11.108

1 year ago

3.11.107

1 year ago

3.11.106

1 year ago

3.11.105

1 year ago

3.11.104

1 year ago

3.10.99

1 year ago

1.8.68

1 year ago

1.8.69

1 year ago

1.4.28

1 year ago

1.4.29

1 year ago

1.8.70

1 year ago

1.8.71

1 year ago

1.9.98

1 year ago

1.8.72

1 year ago

1.9.97

1 year ago

1.8.73

1 year ago

1.9.96

1 year ago

1.8.74

1 year ago

1.6.51

1 year ago

1.8.75

1 year ago

1.8.76

1 year ago

1.6.53

1 year ago

1.8.77

1 year ago

1.6.52

1 year ago

1.8.78

1 year ago

1.6.55

1 year ago

1.8.79

1 year ago

1.6.54

1 year ago

1.6.57

1 year ago

1.6.56

1 year ago

1.6.59

1 year ago

1.6.58

1 year ago

2.9.98

1 year ago

2.9.99

1 year ago

1.5.50

1 year ago

2.10.99

1 year ago

1.5.51

1 year ago

1.5.30

1 year ago

1.5.32

1 year ago

1.5.31

1 year ago

1.5.34

1 year ago

1.5.33

1 year ago

1.5.36

1 year ago

1.5.35

1 year ago

1.5.38

1 year ago

1.5.37

1 year ago

1.3.17

1 year ago

1.5.39

1 year ago

1.3.18

1 year ago

1.3.19

1 year ago

3.10.104

1 year ago

3.10.103

1 year ago

1.5.41

1 year ago

1.5.40

1 year ago

1.7.66

1 year ago

1.5.43

1 year ago

1.3.20

1 year ago

1.7.67

1 year ago

1.5.42

1 year ago

1.3.21

1 year ago

1.7.68

1 year ago

1.5.45

1 year ago

1.5.44

1 year ago

1.5.47

1 year ago

1.3.24

1 year ago

1.5.46

1 year ago

1.3.25

1 year ago

1.5.49

1 year ago

1.3.22

1 year ago

1.5.48

1 year ago

1.3.23

1 year ago

1.3.28

1 year ago

1.3.26

1 year ago

1.3.27

1 year ago

1.8.80

1 year ago

1.8.81

1 year ago

1.8.82

1 year ago

1.8.83

1 year ago

1.6.60

1 year ago

1.8.84

1 year ago

3.10.100

1 year ago

1.8.85

1 year ago

1.6.62

1 year ago

1.8.86

1 year ago

1.6.61

1 year ago

3.10.102

1 year ago

1.8.87

1 year ago

1.6.64

1 year ago

3.10.101

1 year ago

1.8.88

1 year ago

1.6.63

1 year ago

1.8.89

1 year ago

1.6.66

1 year ago

1.6.65

1 year ago

1.8.90

1 year ago

1.8.91

1 year ago

1.8.92

1 year ago

1.8.93

1 year ago

1.8.94

1 year ago

1.8.95

1 year ago

1.8.96

1 year ago

1.5.29

1 year ago

1.3.16

1 year ago

1.3.13

1 year ago

1.3.14

1 year ago

1.3.12

1 year ago

1.3.15

1 year ago

1.3.11

1 year ago

1.3.10

1 year ago

1.3.9

1 year ago

1.3.8

1 year ago

1.3.7

1 year ago

1.2.7

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.1.4

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago