diff --git a/test/css/index.js b/test/css/index.js index cbbec99d36..2311a806b3 100644 --- a/test/css/index.js +++ b/test/css/index.js @@ -6,7 +6,8 @@ describe( 'css', () => { fs.readdirSync( 'test/css/samples' ).forEach( dir => { if ( dir[0] === '.' ) return; - const solo = exists( `test/css/samples/${dir}/solo` ); + // add .solo to a sample directory name to only run that test + const solo = /\.solo/.test( dir ); if ( solo && process.env.CI ) { throw new Error( 'Forgot to remove `solo: true` from test' ); diff --git a/test/css/samples/keyframes/expected.css b/test/css/samples/keyframes/expected.css new file mode 100644 index 0000000000..defe2a4d62 --- /dev/null +++ b/test/css/samples/keyframes/expected.css @@ -0,0 +1,9 @@ + + @keyframes svelte-4112859982-why { + 0% { color: red; } + 100% { color: blue; } + } + + [svelte-4112859982].animated, [svelte-4112859982] .animated { + animation: svelte-4112859982-why 2s; + } diff --git a/test/css/samples/keyframes/input.html b/test/css/samples/keyframes/input.html new file mode 100644 index 0000000000..b4d120f34f --- /dev/null +++ b/test/css/samples/keyframes/input.html @@ -0,0 +1,12 @@ +