Commit Graph

135 Commits

Author SHA1 Message Date
aaronbraundmeier@gmail.com 8015ff1258 inclusive terms
Signed-off-by: aaronbraundmeier@gmail.com <aaronbraundmeier@gmail.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-11-30 12:15:00 +01:00
Patrik Oldsberg be40512430 Revert "chore: (eslint) restrict imports of @material-ui Link"
This reverts commit 7539b36748.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-11-12 17:23:20 +01:00
Patrik Oldsberg 4c16213e7d cli: explicit jest env resolution
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-11-11 10:21:17 +01:00
Patrik Oldsberg 7605c11cda bump Node.js to 16 & 18
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-11-07 11:39:08 +01:00
Dmitry Lobanov 7539b36748 chore: (eslint) restrict imports of @material-ui Link
BREAKING CHANGE: Added a new ESLint rule that restricts imports of Link from @material-ui

Signed-off-by: Dmitry Lobanov <lobanov.dmitry.s@gmail.com>
2022-10-25 13:05:19 +02:00
MT Lewis 1846952276 build: switch eslint-factory to use __testUtils__ instead of __tests__
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2022-10-17 09:41:40 +01:00
MT Lewis 24b40140c4 build: add __tests__ and __mocks__ dirs to relevant parts of eslint-factory
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2022-10-17 09:34:00 +01:00
Mitchell Hentges 78d5eb299e CachingJestRuntime should not do extra work if not watching
The benefits of `CachingJestRuntime` only apply if in `watch` mode.
If not, then we're doing FS calls but not getting benefit from them.

This is a small optimization that will hopefully make CI happier with
our caching runtime, if/when it's used.

Signed-off-by: Mitchell Hentges <mhentges@spotify.com>
2022-09-30 15:10:43 +02:00
Patrik Oldsberg 1720afed04 cli: fix yaml transform and add test for loading yaml
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-09-20 18:02:28 +02:00
Patrik Oldsberg 2dddb32fea cli: switch to custom jest yaml transform to support node 18
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-09-20 14:51:19 +02:00
Patrik Oldsberg b179cd11f4 cli: update jest config for v29
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-09-20 14:51:19 +02:00
Patrik Oldsberg 2e4e6c3500 test fixes to support Jest 29
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-09-20 14:51:19 +02:00
Patrik Oldsberg ffa2d1f414 cli: bump to jest 29
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-09-20 14:51:19 +02:00
Patrik Oldsberg ff142d29cc cli: remove unnecessary react transforms in jest swc config
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-09-05 10:59:09 +02:00
blam d62982e62e chore: starting to look nicer
Signed-off-by: blam <ben@blam.sh>
2022-09-02 13:57:50 +02:00
blam c68a6ecbe6 chore: turn off tsx for .ts files
Signed-off-by: blam <ben@blam.sh>
2022-09-02 13:51:29 +02:00
blam b46b456501 chore: split up the config
Signed-off-by: blam <ben@blam.sh>
2022-09-02 13:41:39 +02:00
blam 742cb4f3d7 chore: update the config and add changeset
Signed-off-by: blam <ben@blam.sh>
2022-09-02 13:34:03 +02:00
blam 797591c510 chore: change how we load jest
Signed-off-by: blam <ben@blam.sh>
2022-09-02 13:20:59 +02:00
blam b27099595f chore: this should work (famous last words)
Signed-off-by: blam <ben@blam.sh>

Signed-off-by: blam <ben@blam.sh>
2022-08-23 10:53:05 +02:00
blam 9a05f6fc26 chore: remove the old esm transform too
Signed-off-by: blam <ben@blam.sh>
2022-08-23 10:53:04 +02:00
blam 1f7dbd35e8 chore: only transform things that smell like esm
Signed-off-by: blam <ben@blam.sh>
2022-08-23 10:53:04 +02:00
blam 684f9b4151 chore: removing the sucrase tranforms and tidy up the transforming
Signed-off-by: blam <ben@blam.sh>

Signed-off-by: blam <ben@blam.sh>
2022-08-23 10:53:04 +02:00
blam a3ea2f4d4e chore: updating to latest version with some changes
Signed-off-by: blam <ben@blam.sh>
2022-08-23 10:53:04 +02:00
blam 3d9e3cdc4b chore: don't transform json-schema either
Signed-off-by: blam <ben@blam.sh>
2022-08-23 10:53:04 +02:00
blam 1c47698ad4 chore: tests mocking out setState is probably bad... let's make the test a little better,
Signed-off-by: blam <ben@blam.sh>
2022-08-23 10:53:04 +02:00
blam a963c36ea6 chore: moving jest to swc
Signed-off-by: blam <ben@blam.sh>
2022-08-23 10:53:04 +02:00
Patrik Oldsberg d45bbfeb69 cli: lint ignore any eslintrc files
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-08-13 11:16:23 +02:00
Patrik Oldsberg 52fb9920ac cli: fix next test coverage configuration
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-04-30 16:30:40 +02:00
Patrik Oldsberg 6cd1f50ae1 cli: prevent imports of stories or tests
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-04-29 10:34:21 +02:00
Patrik Oldsberg ed3551b7be cli: added experimental test configuration and module loader
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-04-16 14:23:17 +02:00
Patrik Oldsberg aeb17a21e6 cli: update Jest 27 changeset + make node env default
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-03-25 11:28:16 +01:00
Patrik Oldsberg af67adafed cli: update package role environment mapping in jest config
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-03-25 11:28:15 +01:00
Patrik Oldsberg 84409a80dd cli: add jest environment detection based on role
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-03-25 11:28:12 +01:00
Patrik Oldsberg 217547ae51 cli: fix test file matching
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-03-13 17:23:59 +01:00
Patrik Oldsberg 19eed0edd9 cli: forward overrides in eslint-factory
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-03-11 18:05:08 +01:00
Patrik Oldsberg 37818baf64 cli: switch existing eslint configs to use factory
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-03-07 14:53:43 +01:00
Patrik Oldsberg 4a6c14a708 cli: added new config/eslint-factory module for creating ESLint configuration based on package role
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-03-07 14:53:42 +01:00
Hasan Oezdemir f7c6b4a9f4 (bugfix): ignore setupTests and the file inside ./dev folder recursively. eslint can not resolve relative paths as we expected here, and it does not apply this rule.
Signed-off-by: Hasan Oezdemir <21654050+nodify-at@users.noreply.github.com>
2022-02-23 13:18:45 +01:00
Patrik Oldsberg 5cc7f48400 cli: fix running tests from root
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-18 13:02:10 +01:00
Patrik Oldsberg 86ab640b20 cli,docs: update jest transform to only include source maps when requested
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-12 16:47:41 +01:00
Patrik Oldsberg c6bbafb516 cli: updated jest transform to include source maps
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-12 14:17:36 +01:00
Patrik Oldsberg fae2aee878 cli: remove no-duplicates lint rule
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-07 12:27:52 +01:00
Patrik Oldsberg 92abfffe84 cli: deduplicate no-extraneous-dependencies lint rule
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-07 12:18:20 +01:00
Patrik Oldsberg bee7082094 cli: detect edge-case for MUI icon imports
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-01-05 01:52:35 +01:00
Patrik Oldsberg 25dfc2d483 add more explicit support for .mjs and .cjs extensions
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-12-02 22:48:16 +01:00
Patrik Oldsberg dde216acf4 cli: switch to v8 coverage provider
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-20 11:32:22 +01:00
Patrik Oldsberg 719cc87d2f cli: disable ES transform in tests
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-20 11:24:08 +01:00
Patrik Oldsberg a10ff21d59 cli: add in a redirect for jestEsmTransform for compatibility
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-10-20 10:45:23 +02:00
Patrik Oldsberg 4050e33f03 cli: remove old jest ESM transform
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-10-13 18:37:05 +02:00