@fluentui/react-conformance-griffel
TypeScript icon, indicating that this package has built-in type declarations

9.0.9 • Public • Published

@fluentui/react-conformance-griffel

A set of conformance tests for @griffel/react. Intended to be used with @fluentui/react-conformance.

Usage

import { isConformant } from '@fluentui/react-conformance';
import griffelTests from '@fluentui/react-conformance-griffel';

isConformant({
  Component,
  extraTests: griffelTests,
});

Please make sure this package is being used with @fluentui/react-conformance if you do use this package without the conformance test runner, you will have problems with missing types. To resolve, just install @fluentui/react-conformance as a dev dependency or a dependency.

Tests

classname-wins

A conformance test for mergeClasses() that ensures that a classname from props is passed as a last param.

// ✅ good
mergeClasses(classes.root, 'foo', props.className);
// ❌ bad
mergeClasses(classes.root, props.className, 'foo');

Readme

Keywords

none

Package Sidebar

Install

npm i @fluentui/react-conformance-griffel

Weekly Downloads

324

Version

9.0.9

License

MIT

Unpacked Size

38.7 kB

Total Files

15

Last publish

Collaborators

  • sopranopillow
  • microsoft1es
  • justslone
  • chrisdholt
  • miroslavstastny
  • levithomason
  • uifabricteam
  • uifrnbot
  • dzearing
  • layershifter
  • ling1726
  • travisspomer