5.14.149 • Published 10 months ago

@firanorg/dolore-cumque-distinctio v5.14.149

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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

10 months ago

5.13.149

10 months ago

5.13.147

10 months ago

5.13.146

10 months ago

5.13.148

10 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

10 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

10 months ago

4.13.140

10 months ago

4.13.143

10 months ago

4.13.144

10 months ago

5.13.145

10 months ago

4.13.141

10 months ago

4.13.142

10 months ago

4.11.131

11 months ago

4.12.131

11 months ago

4.11.130

11 months ago

4.11.129

11 months ago

4.11.128

11 months ago

4.11.127

11 months ago

4.11.125

11 months ago

4.11.126

11 months ago

4.11.123

11 months ago

4.11.124

11 months ago

4.11.121

11 months ago

4.11.122

11 months ago

4.11.120

11 months ago

4.11.119

11 months ago

4.11.118

11 months ago

4.11.116

11 months ago

3.11.116

11 months ago

4.11.117

11 months ago

3.11.115

11 months ago

3.11.114

11 months ago

3.11.113

11 months ago

3.11.112

11 months ago

3.11.111

12 months ago

3.11.110

12 months ago

3.11.109

12 months ago

3.11.108

12 months ago

3.11.107

12 months ago

3.11.106

12 months ago

3.11.105

12 months ago

3.11.104

12 months ago

3.10.99

12 months 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

12 months ago

1.8.72

1 year ago

1.9.97

12 months ago

1.8.73

1 year ago

1.9.96

12 months 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

12 months ago

2.9.99

12 months ago

1.5.50

1 year ago

2.10.99

12 months 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

12 months ago

3.10.103

12 months 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

12 months 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

12 months ago

1.8.87

1 year ago

1.6.64

1 year ago

3.10.101

12 months 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