Skip to content

Commit

Permalink
disable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Jan 8, 2025
1 parent a7dd7c6 commit 066dfb3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,24 @@ jobs:
- name: Run prettier
run: bun run fmt:check

playwright-tests:
name: Playwright tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- uses: actions/cache@v3
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('**/bun.lockb') }}
- name: Install dependencies
run: bun install
- name: Install Playwright dependencies
run: bunx playwright install --with-deps
- name: Run tests
run: bun run test
# playwright-tests:
# name: Playwright tests
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Setup Bun
# uses: oven-sh/setup-bun@v1
# with:
# bun-version: latest
# - uses: actions/cache@v3
# id: playwright-cache
# with:
# path: |
# ~/.cache/ms-playwright
# key: ${{ runner.os }}-playwright-${{ hashFiles('**/bun.lockb') }}
# - name: Install dependencies
# run: bun install
# - name: Install Playwright dependencies
# run: bunx playwright install --with-deps
# - name: Run tests
# run: bun run test
4 changes: 2 additions & 2 deletions src/lib/twitter.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SDK to communicate with the API
// API uses the service

export function getXTokens() {
export function getTwitterTokens() {
const cookies = document.cookie.split(";").reduce((acc, cookie) => {
const [key, value] = cookie.trim().split("=");
acc[key] = value;
Expand All @@ -21,7 +21,7 @@ export async function connectTwitter() {

const data = await response.json();
if (!data.authUrl) {
throw new Error("Failed to get X auth URL");
throw new Error("Failed to get Twitter Auth URL");
}

window.location.href = data.authUrl;
Expand Down
4 changes: 2 additions & 2 deletions src/store/twitter-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const store = (set, get) => ({
set({ isConnecting: true, error: null });
await connectTwitter();
} catch (err) {
set({ isConnecting: false, error: "Failed to connect to X" });
console.error("X connection error:", err);
set({ isConnecting: false, error: "Failed to connect to Twitter" });
console.error("Twitter connection error:", err);
}
},
disconnect: async () => {
Expand Down

0 comments on commit 066dfb3

Please sign in to comment.