* move `preflight` tests to `plugins` test folder * move `container` tests to `plugins` test folder * add a test that ensures that all built-in plugins have tests This is based on a few assumptions: 1. All plugins exist in the `corePlugins.js` file and are exported as `corePlugins` 2. Each exported plugin in that object has a file with a corresponding name in the current (`tests/plugins/`) folder * add dedicated plugin tests in the `plugins` folder * add a test that ensures that all built-in variant plugins have tests This is based on a few assumptions: 1. All variant plugins exist in the `corePlugins.js` file and are exported as `variantPlugins` 2. Each exported plugin in that object has a file with a corresponding name in the current (`tests/plugins/variants/`) folder * add dedicated variant plugin tests in the `plugins/variants` folder * cleanup basic usage test * move existing animation tests to animation plugin tests * move `apply-important-selector` tests to more appropriate location
58 lines
1 KiB
JavaScript
58 lines
1 KiB
JavaScript
import { css, quickPluginTest } from '../util/run'
|
|
|
|
quickPluginTest('gridColumnStart', {
|
|
safelist: [
|
|
// Arbitrary values
|
|
'col-start-[123]',
|
|
'col-start-[var(--my-value)]',
|
|
],
|
|
}).toMatchFormattedCss(css`
|
|
.col-start-1 {
|
|
grid-column-start: 1;
|
|
}
|
|
.col-start-10 {
|
|
grid-column-start: 10;
|
|
}
|
|
.col-start-11 {
|
|
grid-column-start: 11;
|
|
}
|
|
.col-start-12 {
|
|
grid-column-start: 12;
|
|
}
|
|
.col-start-13 {
|
|
grid-column-start: 13;
|
|
}
|
|
.col-start-2 {
|
|
grid-column-start: 2;
|
|
}
|
|
.col-start-3 {
|
|
grid-column-start: 3;
|
|
}
|
|
.col-start-4 {
|
|
grid-column-start: 4;
|
|
}
|
|
.col-start-5 {
|
|
grid-column-start: 5;
|
|
}
|
|
.col-start-6 {
|
|
grid-column-start: 6;
|
|
}
|
|
.col-start-7 {
|
|
grid-column-start: 7;
|
|
}
|
|
.col-start-8 {
|
|
grid-column-start: 8;
|
|
}
|
|
.col-start-9 {
|
|
grid-column-start: 9;
|
|
}
|
|
.col-start-\[123\] {
|
|
grid-column-start: 123;
|
|
}
|
|
.col-start-\[var\(--my-value\)\] {
|
|
grid-column-start: var(--my-value);
|
|
}
|
|
.col-start-auto {
|
|
grid-column-start: auto;
|
|
}
|
|
`)
|