Adam Wathan
38b4eeb288
Prettier likes parens a lot now
...
git blame is now broken forever.
2020-10-16 15:39:44 -04:00
Adam Wathan
1c8c078d2c
Update test
2020-10-15 15:21:06 -04:00
Adam Wathan
416fb4d06b
Don't propogate apply !important option to non-apply rules ( #2376 )
...
* Don't propogate apply !important option to non-apply rules
Fixes #2362 .
* Update changelog
2020-09-13 09:44:19 -04:00
Robin Malfait
3a25c4bee9
Complex apply stuck ( #2271 )
...
* dry-up duplication
* fix: apply inside a nested structure
2020-09-06 20:36:09 -04:00
Adam Wathan
5974f24eda
Add test for applying hover class with !important
2020-08-28 08:17:25 -04:00
Adam Wathan
634a0e6a5f
Merge pull request #2211 from tailwindlabs/apply-to-rule-with-multiple-selectors
...
Fix issue where couldn't apply variant classes to rule with multiple selectors
2020-08-22 08:36:44 -04:00
Robin Malfait
c79b0b936f
Merge pull request #2224 from tailwindlabs/fix-multiline-apply
...
Fix multiline @apply values
2020-08-22 00:23:36 +02:00
Robin Malfait
f15cace373
ensure we expect the correct amount of assertions
...
It is a bit of noise but it will ensure that we don't have false
positives. For example when you have the following code:
```js
it('should fail', () => {
return promise.catch((err) => {
expect(err).toBeInstanceOf(Error)
});
});
```
You would expect that the test passes because we have an expect in the
`.catch` block. However if the promise just resolves it means that no
assertions are executed and the test is considered successful. So in
this case it will _also_ call but for the incorrect reasons!
2020-08-22 00:10:34 +02:00
Robin Malfait
3bf6348523
split @apply values by spaces, tabs and newlines
...
Fixes : #2222
2020-08-22 00:09:46 +02:00
Adam Wathan
86288cd90b
Fix issue where couldn't apply variant classes to rule with multiple selectors
2020-08-20 16:29:07 -04:00
Adam Wathan
ef149cfafb
Optimize rebuilds in long-running processes
2020-08-19 10:21:26 -04:00
Adam Wathan
e37b665b60
Support applying classes that occur multiple times in a single selector
2020-08-14 19:12:45 -04:00
Adam Wathan
cef0b84abf
Reorganize prototype code
2020-08-14 12:23:28 -04:00
Adam Wathan
b527dcf301
Improve test name
2020-08-14 11:26:01 -04:00
Adam Wathan
23ffa25e8a
Avoid accidentally forgetting getProcessedPlugins arg when customizing config
2020-08-14 11:25:55 -04:00
Adam Wathan
b518dc3e4c
Test applying classes with a prefix configured
2020-08-14 11:15:45 -04:00
Adam Wathan
e03db68ff9
Fix test typo
2020-08-14 11:15:17 -04:00
Adam Wathan
2cbc8e90af
Add tests for all the new scenarios @apply now supports
2020-08-13 20:46:27 -04:00
Adam Wathan
8646c94dd5
Prepend a shadow lookup table when no @tailwind rules are in the tree
2020-08-13 20:16:56 -04:00
Adam Wathan
c252e33254
Get shadow lookup working-ish with new apply approach
2020-08-13 12:14:26 -04:00
Adam Wathan
ba9ee0600b
Remove unused expected
2020-08-13 09:01:58 -04:00
Adam Wathan
3d156cc81f
Explicitly don't support legacy cssnext @apply rules
2020-08-13 07:51:46 -04:00
Adam Wathan
36fc03b16d
Add initial support for applying variants and other complex classes
2020-08-12 19:47:21 -04:00