mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
refactor(tooling): add turbo eslint plugin (#65734)
This commit is contained in:
committed by
GitHub
parent
f054de20fd
commit
ae50644091
@@ -7,7 +7,7 @@ import {
|
||||
getAllEmails,
|
||||
getFirstEmail,
|
||||
getSubject
|
||||
} from './utils/mailhog';
|
||||
} from './utils/email';
|
||||
|
||||
test.describe('Claim a certification - almost certified user', () => {
|
||||
test.beforeEach(async () => {
|
||||
|
||||
@@ -6,6 +6,7 @@ export default defineConfig(globalIgnores(['./playwright']), {
|
||||
rules: {
|
||||
'@typescript-eslint/no-unsafe-member-access': 'off',
|
||||
'@typescript-eslint/no-unsafe-call': 'off',
|
||||
'@typescript-eslint/no-unsafe-assignment': 'off'
|
||||
'@typescript-eslint/no-unsafe-assignment': 'off',
|
||||
'turbo/no-undeclared-env-vars': 'off' // If/when we make e2e tests into a turbo task, we can enable this rule again.
|
||||
}
|
||||
});
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
getAllEmails,
|
||||
getFirstEmail,
|
||||
getSubject
|
||||
} from './utils/mailhog';
|
||||
} from './utils/email';
|
||||
|
||||
test.beforeEach(async () => {
|
||||
await deleteAllEmails();
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
getAllEmails,
|
||||
getFirstEmail,
|
||||
getSubject
|
||||
} from './utils/mailhog';
|
||||
} from './utils/email';
|
||||
|
||||
test.beforeEach(async () => {
|
||||
await deleteAllEmails();
|
||||
|
||||
@@ -11,12 +11,7 @@ type AllEmails = {
|
||||
count: number;
|
||||
};
|
||||
|
||||
// TODO: Remove MAILHOG_HOST in a few months
|
||||
// We renamed MailHog to MailPit, but kept the same port and API
|
||||
// This is to keep backward compatibility with existing setups
|
||||
// that might still use MAILHOG_HOST environment variable
|
||||
const host =
|
||||
process.env.MAILPIT_HOST || process.env.MAILHOG_HOST || 'localhost';
|
||||
const host = process.env.MAILPIT_HOST || 'localhost';
|
||||
|
||||
export const getAllEmails = async (): Promise<AllEmails> => {
|
||||
const res = await fetch(`http://${host}:8025/api/v1/messages`);
|
||||
Reference in New Issue
Block a user