Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added ..env.development.swp
Binary file not shown.
70 changes: 31 additions & 39 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,39 +1,31 @@
APP_ID='enterprise-checkout'
NODE_ENV='development'
PORT=1989
ACCESS_TOKEN_COOKIE_NAME='edx-jwt-cookie-header-payload'
BASE_URL='http://localhost:1989'
ENTERPRISE_ACCESS_BASE_URL='http://localhost:18270'
CREDENTIALS_BASE_URL='http://localhost:18150'
CSRF_TOKEN_API_PATH='/csrf/api/v1/token'
ECOMMERCE_BASE_URL='http://localhost:18130'
LANGUAGE_PREFERENCE_COOKIE_NAME='openedx-language-preference'
LMS_BASE_URL='http://localhost:18000'
LOGIN_URL='http://localhost:18000/login'
LOGOUT_URL='http://localhost:18000/logout'
LOGO_URL=https://edx-cdn.org/v3/default/logo.svg
LOGO_TRADEMARK_URL=https://edx-cdn.org/v3/default/logo-trademark.svg
LOGO_WHITE_URL=https://edx-cdn.org/v3/default/logo-white.svg
FAVICON_URL=https://edx-cdn.org/v3/default/favicon.ico
MARKETING_SITE_BASE_URL='http://localhost:18000'
ORDER_HISTORY_URL='http://localhost:1996/orders'
REFRESH_ACCESS_TOKEN_ENDPOINT='http://localhost:18000/login_refresh'
SEGMENT_KEY=''
SITE_NAME=localhost
USER_INFO_COOKIE_NAME='edx-user-info'
MFE_CONFIG_API_URL=''
ENABLE_NEW_RELIC='false'
PARAGON_THEMES_URLS={}
PUBLISHABLE_STRIPE_API_KEY=''
TERMS_OF_SERVICE_URL='https://edx.org/edx-terms-service'
PRIVACY_POLICY_URL='https://edx.org/edx-privacy-policy'
ENTERPRISE_PRODUCT_DESCRIPTIONS_AND_TERMS_URL='https://business.edx.org/product-descriptions-and-terms/'
ENTERPRISE_SALES_TERMS_AND_CONDITIONS_URL='https://business.edx.org/enterprise-sales-terms/'
COMPARE_ENTERPRISE_PLANS_URL=''
CONTACT_SUPPORT_URL=''
RECAPTCHA_SITE_KEY_WEB=''
FEATURE_SELF_SERVICE_PURCHASING=''
FEATURE_SELF_SERVICE_PURCHASING_KEY=''
FEATURE_SELF_SERVICE_ESSENTIALS= ''
FEATURE_SELF_SERVICE_ESSENTIALS_KEY=''
FEATURE_SELF_SERVICE_SITE_KEY= ''
APP_ID=enterprise-checkout
NODE_ENV=development
PORT=2012

# Frontend URL (Codespaces or dev tunnel URL)
BASE_URL=https://vigilant-cod-r49rvwprq4p4f596-2012.app.github.dev

ACCESS_TOKEN_COOKIE_NAME=edx-jwt-cookie-header-payload
USER_INFO_COOKIE_NAME=edx-user-info

# LMS
LMS_BASE_URL=https://vigilant-cod-r49rvwprq4p4f596-18000.app.github.dev

# APIs (Update these to tunnel URLs or the Codespace forwarded ports)
DISCOVERY_API_BASE_URL=https://vigilant-cod-r49rvwprq4p4f596-18381.app.github.dev
ENTERPRISE_CATALOG_API_BASE_URL=https://vigilant-cod-r49rvwprq4p4f596-18160.app.github.dev
ENTERPRISE_ACCESS_BASE_URL=https://vigilant-cod-r49rvwprq4p4f596-18270.app.github.dev
ECOMMERCE_BASE_URL=https://vigilant-cod-r49rvwprq4p4f596-18130.app.github.dev

# Auth (Disabled for devstack)
LOGIN_URL=
LOGOUT_URL=
REFRESH_ACCESS_TOKEN_ENDPOINT=

# Cookies
LANGUAGE_PREFERENCE_COOKIE_NAME=openedx-language-preference

CSRF_TOKEN_API_PATH=/csrf/api/v1/token
SITE_NAME=vigilant-cod-r49rvwprq4p4f596-2012.app.github.dev

ENABLE_NEW_RELIC=false
19 changes: 9 additions & 10 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
// jest.config.js
const { createConfig } = require('@openedx/frontend-build');
const {pathsToModuleNameMapper} = require("ts-jest");
const { compilerOptions } = require("./tsconfig.json");
const { pathsToModuleNameMapper } = require('ts-jest');
const { compilerOptions } = require('./tsconfig.json');

process.env.TZ='UTC'
process.env.TZ = 'UTC';

const config = createConfig('jest', {
// setupFilesAfterEnv is used after the jest environment has been loaded. In general this is what you want.
// If you want to add config BEFORE jest loads, use setupFiles instead.
setupFilesAfterEnv: [
'<rootDir>/src/setupTest.ts',
'<rootDir>/src/setupTest.ts'
],
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, {
prefix: '<rootDir>/',
prefix: '<rootDir>/'
}),
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
coveragePathIgnorePatterns: [
'src/setupTest.ts',
'src/i18n',
],
'src/i18n'
]
});

config.transformIgnorePatterns = ['node_modules/(?!(lodash-es|@(open)?edx)/)'];

module.exports = config;
module.exports = config;
Loading
Loading