Skip to content

Commit

Permalink
windows!
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Aug 20, 2024
1 parent 07097a5 commit 839fa87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
11 changes: 1 addition & 10 deletions packages/astro/playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,7 @@ import { defineConfig } from '@playwright/test';
process.stdout.isTTY = false;

export default defineConfig({
testMatch: [
// 'e2e/actions-blog.test.js',
// 'e2e/actions-react-19.test.js',
'e2e/astro-component.test.js',
'e2e/astro-envs.test.js',
'e2e/client-only.test.js',
'e2e/content-collections.test.js',
'e2e/client-only.test.js',
'e2e/css.test.js',
],
testMatch: 'e2e/*.test.js',
/* Maximum time one test can run for. */
timeout: 40 * 1000,
expect: {
Expand Down
3 changes: 2 additions & 1 deletion scripts/cmd/prebuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default async function prebuild(...args) {
}

let patterns = args;
// NOTE: absolute paths returned are forward slashes on windows
let entryPoints = [].concat(
...(await Promise.all(
patterns.map((pattern) => glob(pattern, { onlyFiles: true, absolute: true })),
Expand All @@ -43,7 +44,7 @@ export default async function prebuild(...args) {
let tscode = await fs.promises.readFile(filepath, 'utf-8');
// If we're bundling a client directive, modify the code to match `packages/astro/src/core/client-directive/build.ts`.
// If updating this code, make sure to also update that file.
if (filepath.includes(`runtime${path.sep}client`)) {
if (filepath.includes('runtime/client')) {
// `export default xxxDirective` is a convention used in the current client directives that we use
// to make sure we bundle this right. We'll error below if this convention isn't followed.
const newTscode = tscode.replace(
Expand Down

0 comments on commit 839fa87

Please sign in to comment.