chore(test): remove duplicates fixtures (#8098)
This commit is contained in:
parent
0bf2cca5d7
commit
0ad6a5e2d8
20 changed files with 32 additions and 376 deletions
|
@ -8,7 +8,11 @@ describe('Setting inlineStylesheets to never in static output', () => {
|
|||
|
||||
before(async () => {
|
||||
fixture = await loadFixture({
|
||||
root: './fixtures/css-inline-stylesheets/never/',
|
||||
// inconsequential config that differs between tests
|
||||
// to bust cache and prevent modules and their state
|
||||
// from being reused
|
||||
site: 'https://test.dev/',
|
||||
root: './fixtures/css-inline-stylesheets/',
|
||||
output: 'static',
|
||||
build: {
|
||||
inlineStylesheets: 'never',
|
||||
|
@ -41,7 +45,11 @@ describe('Setting inlineStylesheets to never in server output', () => {
|
|||
|
||||
before(async () => {
|
||||
const fixture = await loadFixture({
|
||||
root: './fixtures/css-inline-stylesheets/never/',
|
||||
// inconsequential config that differs between tests
|
||||
// to bust cache and prevent modules and their state
|
||||
// from being reused
|
||||
site: 'https://test.dev/',
|
||||
root: './fixtures/css-inline-stylesheets/',
|
||||
output: 'server',
|
||||
adapter: testAdapter(),
|
||||
build: {
|
||||
|
@ -77,7 +85,11 @@ describe('Setting inlineStylesheets to auto in static output', () => {
|
|||
|
||||
before(async () => {
|
||||
fixture = await loadFixture({
|
||||
root: './fixtures/css-inline-stylesheets/auto/',
|
||||
// inconsequential config that differs between tests
|
||||
// to bust cache and prevent modules and their state
|
||||
// from being reused
|
||||
site: 'https://test.info/',
|
||||
root: './fixtures/css-inline-stylesheets/',
|
||||
output: 'static',
|
||||
build: {
|
||||
inlineStylesheets: 'auto',
|
||||
|
@ -117,7 +129,11 @@ describe('Setting inlineStylesheets to auto in server output', () => {
|
|||
|
||||
before(async () => {
|
||||
const fixture = await loadFixture({
|
||||
root: './fixtures/css-inline-stylesheets/auto/',
|
||||
// inconsequential config that differs between tests
|
||||
// to bust cache and prevent modules and their state
|
||||
// from being reused
|
||||
site: 'https://test.info/',
|
||||
root: './fixtures/css-inline-stylesheets/',
|
||||
output: 'server',
|
||||
adapter: testAdapter(),
|
||||
build: {
|
||||
|
@ -161,7 +177,11 @@ describe('Setting inlineStylesheets to always in static output', () => {
|
|||
|
||||
before(async () => {
|
||||
fixture = await loadFixture({
|
||||
root: './fixtures/css-inline-stylesheets/always/',
|
||||
// inconsequential config that differs between tests
|
||||
// to bust cache and prevent modules and their state
|
||||
// from being reused
|
||||
site: 'https://test.net/',
|
||||
root: './fixtures/css-inline-stylesheets/',
|
||||
output: 'static',
|
||||
build: {
|
||||
inlineStylesheets: 'always',
|
||||
|
@ -193,7 +213,11 @@ describe('Setting inlineStylesheets to always in server output', () => {
|
|||
|
||||
before(async () => {
|
||||
const fixture = await loadFixture({
|
||||
root: './fixtures/css-inline-stylesheets/always/',
|
||||
// inconsequential config that differs between tests
|
||||
// to bust cache and prevent modules and their state
|
||||
// from being reused
|
||||
site: 'https://test.net/',
|
||||
root: './fixtures/css-inline-stylesheets/',
|
||||
output: 'server',
|
||||
adapter: testAdapter(),
|
||||
build: {
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"name": "@test/css-inline-stylesheets-auto",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"astro": "workspace:*"
|
||||
}
|
||||
}
|
|
@ -1,86 +0,0 @@
|
|||
---
|
||||
const { class: className = '', style, href } = Astro.props;
|
||||
const { variant = 'primary' } = Astro.props;
|
||||
---
|
||||
|
||||
<span class:list={[`link pixel variant-${variant}`, className]} >
|
||||
<a {href}>
|
||||
<span><slot /></span>
|
||||
</a>
|
||||
</span>
|
||||
|
||||
<style>
|
||||
.link {
|
||||
--border-radius: 8;
|
||||
--duration: 200ms;
|
||||
--delay: 30ms;
|
||||
--background: linear-gradient(180deg, var(--link-color-stop-a), var(--link-color-stop-b));
|
||||
display: flex;
|
||||
color: white;
|
||||
font-size: 1.25rem;
|
||||
width: max-content;
|
||||
}
|
||||
a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0.67rem 1.25rem;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
text-decoration: none;
|
||||
color: inherit !important;
|
||||
/* Indicates the button boundaries for forced colors users in older browsers */
|
||||
outline: 1px solid transparent;
|
||||
}
|
||||
|
||||
@media (forced-colors: active) {
|
||||
a {
|
||||
border: 1px solid LinkText;
|
||||
}
|
||||
}
|
||||
|
||||
a > :global(* + *) {
|
||||
margin-inline-start: 0.25rem;
|
||||
}
|
||||
|
||||
.variant-primary {
|
||||
--variant: primary;
|
||||
--background: linear-gradient(180deg, var(--link-color-stop-a), var(--link-color-stop-b));
|
||||
}
|
||||
.variant-primary:hover,
|
||||
.variant-primary:focus-within {
|
||||
--link-color-stop-a: #6d39ff;
|
||||
--link-color-stop-b: #af43ff;
|
||||
}
|
||||
.variant-primary:active {
|
||||
--link-color-stop-a: #5f31e1;
|
||||
--link-color-stop-b: #a740f3;
|
||||
}
|
||||
|
||||
.variant-outline {
|
||||
--variant: outline;
|
||||
--background: none;
|
||||
color: var(--background);
|
||||
}
|
||||
.variant-outline > a::before {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: calc(var(--pixel-size) * 1px);
|
||||
bottom: calc(var(--pixel-size) * 1px);
|
||||
left: calc(var(--pixel-size) * 1px);
|
||||
content: '';
|
||||
display: block;
|
||||
transform-origin: bottom center;
|
||||
background: linear-gradient(to top, var(--background), rgba(255, 255, 255, 0));
|
||||
opacity: 0.3;
|
||||
transform: scaleY(0);
|
||||
transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
|
||||
}
|
||||
.variant-outline:hover > a::before,
|
||||
.variant-outline:focus-within > a::before {
|
||||
transform: scaleY(1);
|
||||
}
|
||||
.variant-outline:active > a::before {
|
||||
transform: scaleY(1);
|
||||
}
|
||||
</style>
|
|
@ -1,15 +0,0 @@
|
|||
---
|
||||
title: Endeavour
|
||||
description: 'Learn about the Endeavour NASA space shuttle.'
|
||||
publishedDate: 'Sun Jul 11 2021 00:00:00 GMT-0400 (Eastern Daylight Time)'
|
||||
layout: '../../layouts/Layout.astro'
|
||||
tags: [space, 90s]
|
||||
---
|
||||
|
||||
**Source:** [Wikipedia](https://en.wikipedia.org/wiki/Space_Shuttle_Endeavour)
|
||||
|
||||
Space Shuttle Endeavour (Orbiter Vehicle Designation: OV-105) is a retired orbiter from NASA's Space Shuttle program and the fifth and final operational Shuttle built. It embarked on its first mission, STS-49, in May 1992 and its 25th and final mission, STS-134, in May 2011. STS-134 was expected to be the final mission of the Space Shuttle program, but with the authorization of STS-135, Atlantis became the last shuttle to fly.
|
||||
|
||||
The United States Congress approved the construction of Endeavour in 1987 to replace the Space Shuttle Challenger, which was destroyed in 1986.
|
||||
|
||||
NASA chose, on cost grounds, to build much of Endeavour from spare parts rather than refitting the Space Shuttle Enterprise, and used structural spares built during the construction of Discovery and Atlantis in its assembly.
|
|
@ -1,15 +0,0 @@
|
|||
.bg-skyblue {
|
||||
background: skyblue;
|
||||
}
|
||||
|
||||
.bg-lightcoral {
|
||||
background: lightcoral;
|
||||
}
|
||||
|
||||
.red {
|
||||
color: darkred;
|
||||
}
|
||||
|
||||
.blue {
|
||||
color: royalblue;
|
||||
}
|
|
@ -1,35 +0,0 @@
|
|||
---
|
||||
import Button from '../components/Button.astro';
|
||||
import '../imported.css';
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
}
|
||||
|
||||
const { title } = Astro.props;
|
||||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<title>{title}</title>
|
||||
</head>
|
||||
<body>
|
||||
<Button>Button used in layout</Button>
|
||||
<slot />
|
||||
</body>
|
||||
</html>
|
||||
<style is:global>
|
||||
html {
|
||||
font-family: system-ui, sans-serif;
|
||||
background-color: #F6F6F6;
|
||||
}
|
||||
code {
|
||||
font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
|
||||
Bitstream Vera Sans Mono, Courier New, monospace;
|
||||
}
|
||||
</style>
|
|
@ -1,17 +0,0 @@
|
|||
---
|
||||
import Button from '../components/Button.astro';
|
||||
import { getEntryBySlug } from 'astro:content';
|
||||
|
||||
const entry = await getEntryBySlug('en', 'endeavour');
|
||||
const { Content } = await entry.render();
|
||||
---
|
||||
<style>
|
||||
#welcome::after {
|
||||
content: '🚀'
|
||||
}
|
||||
</style>
|
||||
<main>
|
||||
<h1 id="welcome">Welcome to Astro</h1>
|
||||
<Content/>
|
||||
<Button>Button used directly in page</Button>
|
||||
</main>
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"name": "@test/css-inline-stylesheets-never",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"astro": "workspace:*"
|
||||
}
|
||||
}
|
|
@ -1,86 +0,0 @@
|
|||
---
|
||||
const { class: className = '', style, href } = Astro.props;
|
||||
const { variant = 'primary' } = Astro.props;
|
||||
---
|
||||
|
||||
<span class:list={[`link pixel variant-${variant}`, className]} >
|
||||
<a {href}>
|
||||
<span><slot /></span>
|
||||
</a>
|
||||
</span>
|
||||
|
||||
<style>
|
||||
.link {
|
||||
--border-radius: 8;
|
||||
--duration: 200ms;
|
||||
--delay: 30ms;
|
||||
--background: linear-gradient(180deg, var(--link-color-stop-a), var(--link-color-stop-b));
|
||||
display: flex;
|
||||
color: white;
|
||||
font-size: 1.25rem;
|
||||
width: max-content;
|
||||
}
|
||||
a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0.67rem 1.25rem;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
text-decoration: none;
|
||||
color: inherit !important;
|
||||
/* Indicates the button boundaries for forced colors users in older browsers */
|
||||
outline: 1px solid transparent;
|
||||
}
|
||||
|
||||
@media (forced-colors: active) {
|
||||
a {
|
||||
border: 1px solid LinkText;
|
||||
}
|
||||
}
|
||||
|
||||
a > :global(* + *) {
|
||||
margin-inline-start: 0.25rem;
|
||||
}
|
||||
|
||||
.variant-primary {
|
||||
--variant: primary;
|
||||
--background: linear-gradient(180deg, var(--link-color-stop-a), var(--link-color-stop-b));
|
||||
}
|
||||
.variant-primary:hover,
|
||||
.variant-primary:focus-within {
|
||||
--link-color-stop-a: #6d39ff;
|
||||
--link-color-stop-b: #af43ff;
|
||||
}
|
||||
.variant-primary:active {
|
||||
--link-color-stop-a: #5f31e1;
|
||||
--link-color-stop-b: #a740f3;
|
||||
}
|
||||
|
||||
.variant-outline {
|
||||
--variant: outline;
|
||||
--background: none;
|
||||
color: var(--background);
|
||||
}
|
||||
.variant-outline > a::before {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: calc(var(--pixel-size) * 1px);
|
||||
bottom: calc(var(--pixel-size) * 1px);
|
||||
left: calc(var(--pixel-size) * 1px);
|
||||
content: '';
|
||||
display: block;
|
||||
transform-origin: bottom center;
|
||||
background: linear-gradient(to top, var(--background), rgba(255, 255, 255, 0));
|
||||
opacity: 0.3;
|
||||
transform: scaleY(0);
|
||||
transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
|
||||
}
|
||||
.variant-outline:hover > a::before,
|
||||
.variant-outline:focus-within > a::before {
|
||||
transform: scaleY(1);
|
||||
}
|
||||
.variant-outline:active > a::before {
|
||||
transform: scaleY(1);
|
||||
}
|
||||
</style>
|
|
@ -1,15 +0,0 @@
|
|||
---
|
||||
title: Endeavour
|
||||
description: 'Learn about the Endeavour NASA space shuttle.'
|
||||
publishedDate: 'Sun Jul 11 2021 00:00:00 GMT-0400 (Eastern Daylight Time)'
|
||||
layout: '../../layouts/Layout.astro'
|
||||
tags: [space, 90s]
|
||||
---
|
||||
|
||||
**Source:** [Wikipedia](https://en.wikipedia.org/wiki/Space_Shuttle_Endeavour)
|
||||
|
||||
Space Shuttle Endeavour (Orbiter Vehicle Designation: OV-105) is a retired orbiter from NASA's Space Shuttle program and the fifth and final operational Shuttle built. It embarked on its first mission, STS-49, in May 1992 and its 25th and final mission, STS-134, in May 2011. STS-134 was expected to be the final mission of the Space Shuttle program, but with the authorization of STS-135, Atlantis became the last shuttle to fly.
|
||||
|
||||
The United States Congress approved the construction of Endeavour in 1987 to replace the Space Shuttle Challenger, which was destroyed in 1986.
|
||||
|
||||
NASA chose, on cost grounds, to build much of Endeavour from spare parts rather than refitting the Space Shuttle Enterprise, and used structural spares built during the construction of Discovery and Atlantis in its assembly.
|
|
@ -1,15 +0,0 @@
|
|||
.bg-skyblue {
|
||||
background: skyblue;
|
||||
}
|
||||
|
||||
.bg-lightcoral {
|
||||
background: lightcoral;
|
||||
}
|
||||
|
||||
.red {
|
||||
color: darkred;
|
||||
}
|
||||
|
||||
.blue {
|
||||
color: royalblue;
|
||||
}
|
|
@ -1,35 +0,0 @@
|
|||
---
|
||||
import Button from '../components/Button.astro';
|
||||
import '../imported.css';
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
}
|
||||
|
||||
const { title } = Astro.props;
|
||||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<title>{title}</title>
|
||||
</head>
|
||||
<body>
|
||||
<Button>Button used in layout</Button>
|
||||
<slot />
|
||||
</body>
|
||||
</html>
|
||||
<style is:global>
|
||||
html {
|
||||
font-family: system-ui, sans-serif;
|
||||
background-color: #F6F6F6;
|
||||
}
|
||||
code {
|
||||
font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
|
||||
Bitstream Vera Sans Mono, Courier New, monospace;
|
||||
}
|
||||
</style>
|
|
@ -1,17 +0,0 @@
|
|||
---
|
||||
import Button from '../components/Button.astro';
|
||||
import { getEntryBySlug } from 'astro:content';
|
||||
|
||||
const entry = await getEntryBySlug('en', 'endeavour');
|
||||
const { Content } = await entry.render();
|
||||
---
|
||||
<style>
|
||||
#welcome::after {
|
||||
content: '🚀'
|
||||
}
|
||||
</style>
|
||||
<main>
|
||||
<h1 id="welcome">Welcome to Astro</h1>
|
||||
<Content/>
|
||||
<Button>Button used directly in page</Button>
|
||||
</main>
|
|
@ -2443,23 +2443,11 @@ importers:
|
|||
specifier: workspace:*
|
||||
version: link:../../..
|
||||
|
||||
packages/astro/test/fixtures/css-inline-stylesheets/always:
|
||||
packages/astro/test/fixtures/css-inline-stylesheets:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: workspace:*
|
||||
version: link:../../../..
|
||||
|
||||
packages/astro/test/fixtures/css-inline-stylesheets/auto:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: workspace:*
|
||||
version: link:../../../..
|
||||
|
||||
packages/astro/test/fixtures/css-inline-stylesheets/never:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: workspace:*
|
||||
version: link:../../../..
|
||||
version: link:../../..
|
||||
|
||||
packages/astro/test/fixtures/css-no-code-split:
|
||||
dependencies:
|
||||
|
@ -18556,25 +18544,21 @@ packages:
|
|||
file:packages/astro/test/fixtures/css-assets/packages/font-awesome:
|
||||
resolution: {directory: packages/astro/test/fixtures/css-assets/packages/font-awesome, type: directory}
|
||||
name: '@test/astro-font-awesome-package'
|
||||
version: 0.0.1
|
||||
dev: false
|
||||
|
||||
file:packages/astro/test/fixtures/multiple-renderers/renderers/one:
|
||||
resolution: {directory: packages/astro/test/fixtures/multiple-renderers/renderers/one, type: directory}
|
||||
name: '@test/astro-renderer-one'
|
||||
version: 1.0.0
|
||||
dev: false
|
||||
|
||||
file:packages/astro/test/fixtures/multiple-renderers/renderers/two:
|
||||
resolution: {directory: packages/astro/test/fixtures/multiple-renderers/renderers/two, type: directory}
|
||||
name: '@test/astro-renderer-two'
|
||||
version: 1.0.0
|
||||
dev: false
|
||||
|
||||
file:packages/astro/test/fixtures/solid-component/deps/solid-jsx-component:
|
||||
resolution: {directory: packages/astro/test/fixtures/solid-component/deps/solid-jsx-component, type: directory}
|
||||
name: '@test/solid-jsx-component'
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
solid-js: 1.7.6
|
||||
dev: false
|
||||
|
|
Loading…
Reference in a new issue