Skip to content

Commit

Permalink
test: 🧪 Updated previous snapshot for related asset naming change fro…
Browse files Browse the repository at this point in the history
…m app-*.css to user-app-*.css
  • Loading branch information
TechAkayy committed Jan 27, 2025
1 parent 8d5593d commit 95bd877
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
- name: Build
run: pnpm build:all

- name: Build Blog Site
run: pnpm blog:build

- name: Tests
run: pnpm test

Expand Down
14 changes: 7 additions & 7 deletions packages/iles/tests/__snapshots__/build.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ exports[`building docs site > html files 1`] = `
<meta name="twitter:card" content="summary">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="stylesheet" href="/assets/default-.css">
<link rel="stylesheet" href="/assets/app.css">
<link rel="stylesheet" href="/assets/user-app.css">

<script type="module" async src="/assets/turbo.BkUC-S31.js"></script></head>
<body >
Expand Down Expand Up @@ -74,7 +74,7 @@ exports[`building docs site > html files 2`] = `
<meta name="twitter:card" content="summary">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="stylesheet" href="/assets/default-.css">
<link rel="stylesheet" href="/assets/app.css">
<link rel="stylesheet" href="/assets/user-app.css">

<script type="module" async src="/assets/turbo.BkUC-S31.js"></script></head>
<body >
Expand Down Expand Up @@ -121,7 +121,7 @@ exports[`building docs site > html files 3`] = `
<meta name="twitter:card" content="summary">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="stylesheet" href="/assets/default-.css">
<link rel="stylesheet" href="/assets/app.css">
<link rel="stylesheet" href="/assets/user-app.css">

<script type="module" async src="/assets/turbo.BkUC-S31.js"></script></head>
<body >
Expand Down Expand Up @@ -160,7 +160,7 @@ exports[`building docs site > html files 4`] = `
<meta name="twitter:card" content="summary">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="stylesheet" href="/assets/default-.css">
<link rel="stylesheet" href="/assets/app.css">
<link rel="stylesheet" href="/assets/user-app.css">

<script type="module" async src="/assets/turbo.BkUC-S31.js"></script></head>
<body >
Expand Down Expand Up @@ -197,7 +197,7 @@ exports[`building docs site > html files 5`] = `
<meta name="twitter:card" content="summary">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="stylesheet" href="/assets/default-.css">
<link rel="stylesheet" href="/assets/app.css">
<link rel="stylesheet" href="/assets/user-app.css">

<script type="module" async src="/assets/turbo.BkUC-S31.js"></script></head>
<body >
Expand Down Expand Up @@ -269,7 +269,7 @@ exports[`building docs site > html files 6`] = `
<meta name="twitter:card" content="summary">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="stylesheet" href="/assets/default-.css">
<link rel="stylesheet" href="/assets/app.css">
<link rel="stylesheet" href="/assets/user-app.css">

<script type="module" async src="/assets/turbo.BkUC-S31.js"></script></head>
<body >
Expand Down Expand Up @@ -374,7 +374,7 @@ exports[`building docs site > html files 7`] = `
<meta name="twitter:card" content="summary">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="stylesheet" href="/assets/default-.css">
<link rel="stylesheet" href="/assets/app.css">
<link rel="stylesheet" href="/assets/user-app.css">

<script type="module" async src="/assets/turbo.BkUC-S31.js"></script></head>
<body >
Expand Down
6 changes: 3 additions & 3 deletions packages/iles/tests/build.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ describe('building docs site', () => {
expect(files.sort()).toEqual(expect.arrayContaining([
'404.html',
'_headers',
'assets/app-Y_77dvPh.css',
'assets/turbo.BkUC-S31.js',
'assets/user-app-Y_77dvPh.css',
'favicon.ico',
'feed.rss',
'index.html',
Expand All @@ -45,7 +45,7 @@ describe('building docs site', () => {
})

test('styles', async () => {
await assertSnapshot('assets/app-Y_77dvPh.css')
await assertSnapshot('assets/user-app-Y_77dvPh.css')
await assertSnapshot('assets/default--6gluetn.css')
})
test('sitemap', async () => {
Expand Down Expand Up @@ -99,7 +99,7 @@ async function assertHTML (path: string, { title }: any = {}) {
expectContent.toContain('<link rel="sitemap" href="https://the-vue-point-with-iles.netlify.app/sitemap.xml">')
expectContent.toContain(`<meta property="og:url" content="https://the-vue-point-with-iles.netlify.app/${path.replace('index.html', '')}">`)
expectContent.toContain('<link rel="stylesheet" href="/assets/default-.css">')
expectContent.toContain('<link rel="stylesheet" href="/assets/app.css">')
expectContent.toContain('<link rel="stylesheet" href="/assets/user-app.css">')

expectContent.toContain('<ile-root id="ile-1">'
+ '<div class="text-sm text-gray-500 leading-5">'
Expand Down

0 comments on commit 95bd877

Please sign in to comment.