mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
* Prevent ViewTransition script from being added by mistake * Add the 2-legacy branch to CI
This commit is contained in:
parent
8450379db8
commit
e7f872e91e
4 changed files with 13 additions and 1 deletions
5
.changeset/swift-taxis-sing.md
Normal file
5
.changeset/swift-taxis-sing.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Prevent ViewTransition script from being added by mistake
|
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
|
@ -5,6 +5,7 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- "1-legacy"
|
- "1-legacy"
|
||||||
|
- "2-legacy"
|
||||||
- next
|
- next
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
export { default as Code } from './Code.astro';
|
export { default as Code } from './Code.astro';
|
||||||
export { default as Debug } from './Debug.astro';
|
export { default as Debug } from './Debug.astro';
|
||||||
export { default as ViewTransitions } from './ViewTransitions.astro';
|
|
||||||
|
|
|
@ -23,4 +23,11 @@ describe('Code component', () => {
|
||||||
let $ = cheerio.load(html);
|
let $ = cheerio.load(html);
|
||||||
expect($('pre').attr('is:raw')).to.equal(undefined);
|
expect($('pre').attr('is:raw')).to.equal(undefined);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// ViewTransitions bug
|
||||||
|
it('No script should be added to the page', async () => {
|
||||||
|
let html = await fixture.readFile('/index.html');
|
||||||
|
let $ = cheerio.load(html);
|
||||||
|
expect($('script')).to.have.a.lengthOf(0);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue