0
0
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:
Paul Sauve 2017-01-23 14:58:32 -06:00
parent da2e78d6fa
commit 2673c10998
5 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,5 @@
export default {
'skip-ssr': true, // uses onrender
html: `<div><p>true</p>\n<p>true</p></div>`
};

View File

@ -1,4 +1,6 @@
export default {
'skip-ssr': true, // uses onrender
html: `<div><p>true</p></div>`,
test ( assert, component, target ) {

View File

@ -1,4 +1,6 @@
export default {
'skip-ssr': true, // uses onrender
html: `
<p>1</p>
<p>2</p>

View File

@ -1,3 +1,5 @@
export default {
'skip-ssr': true, // uses onrender
html: '<p>2</p>'
};

View File

@ -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' });