46 Commits

Author SHA1 Message Date
Oliver Eyton-Williams
e4a9b2988c
feat: update Ask for help (#40114)
* feat: get helpCategory from frontmatter

* DEBUG: sets all the projects to JavaScript

This is just so the tests pass, it'll need to go.

* fix: updated helpCategoryMap categories

* fix: added Python to helpCategory frontmatter key

Co-authored-by: Randell Dawson <rdawson@onepathtech.com>
2020-10-30 14:10:34 -05:00
Oliver Eyton-Williams
0caa2fe782 fix: only test audited certificates 2020-10-22 03:18:16 +05:30
Oliver Eyton-Williams
793fa8fb52 test: check replaced iff translatable comment
All translatable comments should be replaced, but nothing else.
2020-10-22 03:18:13 +05:30
Oliver Eyton-Williams
1b895e7809 fix: translate title and dashName correctly 2020-10-06 23:10:08 +05:30
Oliver Eyton-Williams
9df098953d Feat: editable dom element (#39341)
* feat: __testEditable allows editable region tests

It's not entirely isolated, but it makes it possible to select only the
element with id 'editable-only' which is built solely from code inside
the editable region.

* fix(client): missing editableContents -> ''

Previously it was added as the string 'undefined'

* fix: more informative error messages

* fix: DRY, correct and test getLines
2020-09-16 11:54:11 +05:30
Oliver Eyton-Williams
68b223322f feat: make editable code available in tests 2020-09-16 11:54:09 +05:30
Oliver Eyton-Williams
0f3f27287d fix: unify single and multifile testing 2020-09-16 11:54:08 +05:30
Oliver Eyton-Williams
52cb6adf02 refactor: sortFiles -> toSortedArray 2020-09-16 11:54:07 +05:30
Oliver Eyton-Williams
301212e194 feat: handle multi-file solutions 2020-09-16 11:54:06 +05:30
Oliver Eyton-Williams
754a33970e refactor(multi) move preparation into curriculum 2020-09-16 11:54:05 +05:30
Oliver Eyton-Williams
b25089d7c8 fix: relax challenge validation for multiple seeds 2020-09-16 11:54:02 +05:30
Oliver Eyton-Williams
fd7a8c0d5e feat: allow next challenge's seed to be a solution (#39145)
* feat: allow next challenge's seed to be a solution
2020-09-16 11:54:01 +05:30
Kris Koishigawa
4f1be63055 feat(learn): sync master and next-curriculum branches 2020-09-16 11:54:01 +05:30
Oliver Eyton-Williams
189b9081ca feat: add script reporting more errors 2020-09-09 01:00:43 +05:30
Oliver Eyton-Williams
e9bd88d245 fix: make all unhandled errors fail tests 2020-09-09 01:00:43 +05:30
Oliver Eyton-Williams
7055211959 fix: simplify language specific testing
Prevents multiple languages' challenges from being tested at once.
2020-08-16 04:45:19 +05:30
Oliver Eyton-Williams
ab1f14246a
fix(curriculum): include stack with test errors (#39209) 2020-07-09 21:15:09 +05:30
Oliver Eyton-Williams
b4926052f4
chore: refactor and simplify testing (#39050) 2020-06-13 14:57:15 +05:30
Tom
560aacd4eb
fix: add more tests for curriclum testing (#38464)
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-04-23 22:31:15 +05:30
Oliver Eyton-Williams
a27992a8b6 fix: transpile import() for testing in node 2020-02-20 19:52:23 +05:30
Tom
5ca2d2467a fix: make help button use subforum topics (#37741)
* fix: make help button use subforum topics

* fix: add test to check that block exists

Co-authored-by: ojeytonwilliams <ojeytonwilliams@gmail.com>

* fix: improve error message

* Update curriculum/test/test-challenges.js

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2019-11-15 23:03:08 +05:30
Oliver Eyton-Williams
687c4fdb98 fix(client): add cache-busting hashes to chunks (#37746)
* fix(client): add cache-busting hashes to chunks

* fix: create cache-busting names for the workers

Prior to this PR the first webpack compilation gave the workers static
names.  This can cause caching problems, so this PR adds hashes to
their names to invalidate the cache.

In order for Gatsby to find them, the names are added to the
config directory.
2019-11-15 01:43:44 +05:30
Oliver Eyton-Williams
2066ed674b fix: make challenge test errors more informative (#37020) 2019-10-04 03:16:30 -07:00
Oliver Eyton-Williams
538e0bbee3 feat: Lint curriculum, including test yaml 2019-07-19 15:30:17 +05:30
Oliver Eyton-Williams
c6cbaf3658 Ensure that errors in testing are handled correctly 2019-06-08 03:28:20 +05:30
Valeriy S
845b966bda fix(client): execute web workers concurrently 2019-03-29 15:06:10 +05:30
Valeriy
aa6305778f chore(tools): tests in a docker container 2019-03-15 15:50:30 +05:30
Valeriy
fc8c71ad16 feat: use eslint with prettier to format code 2019-02-19 14:30:27 +05:30
Valeriy S
67140a4d33 fix(tests): fix broken tests 2019-02-16 17:48:37 +00:00
Valeriy
cc6e1fdbf4 fix(edge): get client app to work on edge (#35040) 2019-02-03 22:19:27 +05:30
Valeriy
b0f19aa3f6 fix(tests): tests optimization 2019-01-17 16:53:38 +05:30
Valeriy S
3d008c69d7 fix(learn): on user code execution error, run tests anyway 2019-01-16 10:45:39 +00:00
Valeriy S
e063686fca feat(tests): use client build pipeline and test runners for testing curriculum 2019-01-16 10:45:39 +00:00
Valeriy S
2137da5aa6 test(curriculum): filter test langs by an env variable 2019-01-10 12:54:59 +00:00
Valeriy
515999070d test(curriculum): check challenges for all langs 2019-01-10 12:54:59 +00:00
Valeriy
81f9dce834 test(curriculum): challenge schema validator for lang 2019-01-10 12:54:59 +00:00
Valeriy
98ba33e7a3 fix(test): simplify test runner 2018-12-03 17:29:36 +00:00
Valeriy
bc3d88605c fix(test): use Puppeteer for HTML tests 2018-12-03 17:29:36 +00:00
Valeriy S
28798dc008 fix(test): transform js challenges before a test 2018-11-29 12:04:49 +00:00
Valeriy
36fa426149 fix: test curriculum 2018-11-28 15:19:38 +00:00
Valeriy
82ec250c75 fix(curriculum): prevent infinite test execution (#34297) 2018-11-16 23:46:27 +05:30
Valeriy
d5c0c2273f test(curriculum): suppress redundant errors (#33327)
<!-- Please follow this checklist and put an x in each of the boxes, like this: [x]. It will ensure that our team takes your pull request seriously. -->

- [x] I have read [freeCodeCamp's contribution guidelines](https://github.com/freeCodeCamp/freeCodeCamp/blob/master/CONTRIBUTING.md).
- [x] My pull request has a descriptive title (not a vague title like `Update index.md`)
- [x] My pull request targets the `master` branch of freeCodeCamp.
- [x] None of my changes are plagiarized from another source without proper attribution.
- [x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.

Closes #33195
2018-11-01 21:26:15 +05:30
Valeriy
c0679a321c test(curriculum): set url for enzyme (#32933) 2018-10-31 00:02:59 -04:00
Valeriy
78c5b11d08 test(curriculum): add backend challenges to test 2018-10-28 03:16:22 +05:30
Valeriy S
0aa6881508 test(curriculum): test suites must fail on the initial contents 2018-10-28 03:16:22 +05:30
Valeriy
62cc8acb87 test(curriculum): use Mocha for tests 2018-10-25 14:33:21 +05:30