diff --git a/.changeset/polite-books-serve.md b/.changeset/polite-books-serve.md index 81ce9a3..510e23c 100644 --- a/.changeset/polite-books-serve.md +++ b/.changeset/polite-books-serve.md @@ -4,10 +4,12 @@ ## BREAKING CHANGES -Remove the `directorySeparator` option and replace all `_` by `-` to follow the Stimulus naming convention. +- Remove the `directorySeparator` option and replace all `_` by `-` to follow the Stimulus naming convention. If you previously had a controller named `my_controller`, it will now be `my-controller`. ## Dev Changes -Update ESLint to flat config, update dependencies. +- Update ESLint to flat config, update dependencies. +- Remove test for `directorySeparator` option. +- Add tests with controllers named with `_` and `-`. diff --git a/test/index.test.ts b/test/index.test.ts index 6f1b150..f26d3c2 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -153,6 +153,7 @@ describe('Controller definitions', () => { test('Definitions for relative long name controllers are valid', () => { const definitions = importDefinitions('relative-long-name-definitions'); + expect(definitions).toBeArrayOfSize(relativeLongNameDefinitions.length); expect(definitions).toEqual(relativeLongNameDefinitions); });