Skip to content

Commit 4be48a1

Browse files
committed
remove intern and associated tests, docs, etc
1 parent 2af4220 commit 4be48a1

74 files changed

Lines changed: 37 additions & 12273 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/functional-tests/tests/misc.spec.ts

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,6 @@
44

55
import { expect, test } from '../lib/fixtures/standard';
66

7-
test.describe('severity-1', () => {
8-
// runs all mocha tests - see output here: http://127.0.0.1:3030/tests/index.html
9-
test('content-server mocha tests', async ({ target, page }, { project }) => {
10-
test.skip(project.name !== 'local', 'mocha tests are local only');
11-
await page.goto(`${target.contentServerUrl}/tests/index.html`, {
12-
waitUntil: 'load',
13-
});
14-
await page.waitForTimeout(2000); // wait for mocha to load
15-
await page.evaluate(() =>
16-
(globalThis as any).runner.on(
17-
'end',
18-
() => ((globalThis as any).done = true)
19-
)
20-
);
21-
await page.waitForFunction(
22-
() => (globalThis as any).done,
23-
{},
24-
{ timeout: 0 }
25-
);
26-
const failures = await page.evaluate(
27-
() => (globalThis as any).runner.failures
28-
);
29-
expect(failures).toBe(0);
30-
});
31-
});
32-
337
test.describe('robots.txt', () => {
348
test('should allow bots to access all pages', async ({ target, page }) => {
359
await page.goto(`${target.contentServerUrl}/robots.txt`, {

packages/fxa-content-server/README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@ This package uses Selenium to perform functional tests. By default `npm test` wi
5151
yarn test -- --grep="change password, sign in with new password"
5252
```
5353

54-
If you need to run tests for a particular suite, you can like so:
55-
56-
```bash
57-
node tests/intern.js --suites=server --grep='check resources entrained by /signin in all locales'
58-
```
59-
6054
#### Changing the Auth Server
6155

6256
To change the default Auth Server edit `server/config/*.json` on your deployed instance.

packages/fxa-content-server/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,14 @@
1616
"audit": "npm audit --json | audit-filter --nsp-config=.nsprc --audit=-",
1717
"l10n-create-json": "NODE_OPTIONS=--openssl-legacy-provider grunt l10n-create-json",
1818
"l10n-prime": "yarn l10n:prime packages/fxa-content-server",
19-
"lint": "yarn lint-glean && eslint app server tests --cache",
19+
"lint": "yarn lint-glean && eslint app server --cache",
2020
"lint-glean": "npx glean glinter ../fxa-shared/metrics/glean/fxa-ui-pings.yaml ../fxa-shared/metrics/glean/fxa-ui-metrics.yaml",
2121
"start": "pm2 start pm2.config.js && yarn check:url localhost:3030/bundle/app.bundle.js",
2222
"stop": "pm2 stop pm2.config.js",
2323
"restart": "pm2 restart pm2.config.js ",
2424
"delete": "pm2 delete pm2.config.js",
2525
"start-production": "NODE_ENV=production grunt build && yarn build-css && CONFIG_FILES=server/config/local.json,server/config/production.json,server/config/secrets.json grunt serverproc:dist",
2626
"start-remote": "scripts/run_remote_dev.sh",
27-
"test": "node tests/intern.js --unit=true",
28-
"test-server": "node tests/intern.js --suites=server",
2927
"format": "prettier --write --config ../../_dev/.prettierrc '**'"
3028
},
3129
"repository": {
@@ -153,7 +151,6 @@
153151
"grunt-todo": "0.5.0",
154152
"htmlparser2": "9.1.0",
155153
"install": "0.13.0",
156-
"intern": "^4.10.1",
157154
"jsqr": "1.4.0",
158155
"otplib": "^11.0.1",
159156
"pm2": "^5.4.2",

packages/fxa-content-server/tests/.eslintrc

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)