mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 17:30:59 +01:00
Work on skipping some tests
This commit is contained in:
parent
da2e78d6fa
commit
2673c10998
@ -1,3 +1,5 @@
|
||||
export default {
|
||||
'skip-ssr': true, // uses onrender
|
||||
|
||||
html: `<div><p>true</p>\n<p>true</p></div>`
|
||||
};
|
||||
|
@ -1,4 +1,6 @@
|
||||
export default {
|
||||
'skip-ssr': true, // uses onrender
|
||||
|
||||
html: `<div><p>true</p></div>`,
|
||||
|
||||
test ( assert, component, target ) {
|
||||
|
@ -1,4 +1,6 @@
|
||||
export default {
|
||||
'skip-ssr': true, // uses onrender
|
||||
|
||||
html: `
|
||||
<p>1</p>
|
||||
<p>2</p>
|
||||
|
@ -1,3 +1,5 @@
|
||||
export default {
|
||||
'skip-ssr': true, // uses onrender
|
||||
|
||||
html: '<p>2</p>'
|
||||
};
|
||||
|
@ -58,7 +58,7 @@ describe( 'ssr', () => {
|
||||
throw new Error( 'Forgot to remove `solo: true` from test' );
|
||||
}
|
||||
|
||||
( config.skip ? it.skip : config.solo ? it.only : it )( dir, () => {
|
||||
( config.skip || config['skip-ssr'] ? it.skip : config.solo ? it.only : it )( dir, () => {
|
||||
try {
|
||||
const source = fs.readFileSync( `test/generator/${dir}/main.html`, 'utf-8' );
|
||||
svelte.compile( source, { generate: 'ssr' });
|
||||
|
Loading…
Reference in New Issue
Block a user