Fixed #1 - Fixed the whatsnew-** script for loading release notes into builds
Added test to ensure that release notes are parsed properly Updated to latest dependencies to fix security vulnerability Updated GH Actions Workflow to run test before updating tag Updated README.md to reflect proper whatsnew documentation.
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
import * as process from 'process'
|
||||
import * as cp from 'child_process'
|
||||
import * as path from 'path'
|
||||
|
||||
1
__tests__/whatsnew-de-DE
Normal file
1
__tests__/whatsnew-de-DE
Normal file
@@ -0,0 +1 @@
|
||||
test_changelog_file_german
|
||||
1
__tests__/whatsnew-en-US
Normal file
1
__tests__/whatsnew-en-US
Normal file
@@ -0,0 +1 @@
|
||||
test_changelog_file
|
||||
1
__tests__/whatsnew-ja-JP
Normal file
1
__tests__/whatsnew-ja-JP
Normal file
@@ -0,0 +1 @@
|
||||
test_changelog_file_japanese
|
||||
23
__tests__/whatsnew.test.ts
Normal file
23
__tests__/whatsnew.test.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import * as process from 'process'
|
||||
import * as cp from 'child_process'
|
||||
import * as path from 'path'
|
||||
import {readLocalizedReleaseNotes} from "../src/whatsnew";
|
||||
import {androidpublisher_v3} from "googleapis";
|
||||
import LocalizedText = androidpublisher_v3.Schema$LocalizedText;
|
||||
|
||||
test("read localized whatsnew files", async () => {
|
||||
let texts = await readLocalizedReleaseNotes("./__tests__");
|
||||
expect(texts).toHaveLength(3);
|
||||
expect(texts).toContainEqual({
|
||||
language: "en-US",
|
||||
text: "test_changelog_file"
|
||||
});
|
||||
expect(texts).toContainEqual({
|
||||
language: "de-DE",
|
||||
text: "test_changelog_file_german"
|
||||
});
|
||||
expect(texts).toContainEqual({
|
||||
language: "ja-JP",
|
||||
text: "test_changelog_file_japanese"
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user